{"id":19687790,"url":"https://github.com/barisatamer/swiftgooglecloudtts","last_synced_at":"2025-07-14T07:35:30.941Z","repository":{"id":54151075,"uuid":"234955829","full_name":"barisatamer/SwiftGoogleCloudTTS","owner":"barisatamer","description":"A client for Google Cloud Text-to-Speech, built on top of SwiftNIO","archived":false,"fork":false,"pushed_at":"2021-03-07T14:34:07.000Z","size":43,"stargazers_count":7,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-29T07:41:11.495Z","etag":null,"topics":["googlecloudplatform","googlecloudtexttospeech","swift5","swiftnio","vapor-4"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/barisatamer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-19T19:47:27.000Z","updated_at":"2024-01-27T22:25:51.000Z","dependencies_parsed_at":"2022-08-13T07:40:42.644Z","dependency_job_id":null,"html_url":"https://github.com/barisatamer/SwiftGoogleCloudTTS","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/barisatamer/SwiftGoogleCloudTTS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barisatamer%2FSwiftGoogleCloudTTS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barisatamer%2FSwiftGoogleCloudTTS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barisatamer%2FSwiftGoogleCloudTTS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barisatamer%2FSwiftGoogleCloudTTS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/barisatamer","download_url":"https://codeload.github.com/barisatamer/SwiftGoogleCloudTTS/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barisatamer%2FSwiftGoogleCloudTTS/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265256355,"owners_count":23735460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["googlecloudplatform","googlecloudtexttospeech","swift5","swiftnio","vapor-4"],"created_at":"2024-11-11T18:36:11.739Z","updated_at":"2025-07-14T07:35:30.918Z","avatar_url":"https://github.com/barisatamer.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftGoogleCloudTTS\n\u003cp align=\"left\"\u003e\n  \u003ca href=\"https://swift.org\"\u003e\n    \u003cimg src=\"http://img.shields.io/badge/swift-5.1-brightgreen.svg\" alt=\"Swift 5.1\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"LICENSE\"\u003e\n    \u003cimg src=\"http://img.shields.io/badge/license-MIT-brightgreen.svg\" alt=\"MIT License\"\u003e\n\u003c/p\u003e\n  \n### Before you begin ⚠️\n\n1.  [Select or create a Cloud Platform project][projects].\n1.  [Enable billing for your project][billing].\n1.  [Enable the Google Cloud Text-to-Speech API][enable_api].\n1.  [Set up authentication with a service account][auth] so you can access the\n    API from your local workstation.\n    \n### Installation 📦\n\nTo include it in your package, add the following to your `Package.swift` file.\n\n```swift\nlet package = Package(\n    name: \"Project\",\n    dependencies: [\n        ...\n        .package(url: \"https://github.com/barisatamer/SwiftGoogleCloudTTS.git\", from: \"0.0.5\"),\n        ],\n        targets: [\n            .target(name: \"App\", dependencies: [\"SwiftGoogleCloudTTS\", ... ])\n        ]\n    )\n```\n\n### Setting the environment variable \n\n```bash\nexport GOOGLE_APPLICATION_CREDENTIALS=\"[PATH]\"\n```\n\n### Usage 🚀\n```swift\nimport SwiftGoogleCloudTTS\n\nlet synthesizeSpeechRequest = Google_Cloud_Texttospeech_V1_SynthesizeSpeechRequest.with {\n    $0.input = Google_Cloud_Texttospeech_V1_SynthesisInput.with {\n        $0.text = \"Text to speech testing\"\n    }\n    $0.voice = Google_Cloud_Texttospeech_V1_VoiceSelectionParams.with {\n        $0.name = \"en-US-Wavenet-A\"\n        $0.languageCode = \"en-US\"\n    }\n    $0.audioConfig = Google_Cloud_Texttospeech_V1_AudioConfig.with {\n        $0.audioEncoding = Google_Cloud_Texttospeech_V1_AudioEncoding.mp3\n    }\n}\ndo {\n    let response = try client.synthesizeSpeech(request: synthesizeSpeechRequest).wait()\n    // .. \n} catch {\n    print(error)\n}\n\n```\n\n\n\n\n[client-docs]: https://googleapis.dev/nodejs/text-to-speech/latest\n[product-docs]: https://cloud.google.com/text-to-speech\n[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png\n[projects]: https://console.cloud.google.com/project\n[billing]: https://support.google.com/cloud/answer/6293499#enable-billing\n[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=texttospeech.googleapis.com\n[auth]: https://cloud.google.com/docs/authentication/getting-started\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarisatamer%2Fswiftgooglecloudtts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarisatamer%2Fswiftgooglecloudtts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarisatamer%2Fswiftgooglecloudtts/lists"}