{"id":17693634,"url":"https://github.com/dom96/texttospeech","last_synced_at":"2025-04-09T16:18:16.105Z","repository":{"id":137347383,"uuid":"142928869","full_name":"dom96/texttospeech","owner":"dom96","description":"A Nim client for the Google Cloud Text to Speech API.","archived":false,"fork":false,"pushed_at":"2018-08-13T20:07:07.000Z","size":5,"stargazers_count":11,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T16:18:03.772Z","etag":null,"topics":["api-client","google-cloud","nim","text-to-speech"],"latest_commit_sha":null,"homepage":"","language":"Nim","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/dom96.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-30T21:14:32.000Z","updated_at":"2024-09-12T13:19:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"088dab76-a8a7-442a-bfdf-0c9fcffe12c7","html_url":"https://github.com/dom96/texttospeech","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dom96%2Ftexttospeech","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dom96%2Ftexttospeech/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dom96%2Ftexttospeech/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dom96%2Ftexttospeech/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dom96","download_url":"https://codeload.github.com/dom96/texttospeech/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065280,"owners_count":21041872,"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":["api-client","google-cloud","nim","text-to-speech"],"created_at":"2024-10-24T13:46:05.698Z","updated_at":"2025-04-09T16:18:16.068Z","avatar_url":"https://github.com/dom96.png","language":"Nim","funding_links":[],"categories":[],"sub_categories":[],"readme":"# texttospeech\n\n**texttospeech** implements a\n[Google Cloud Text to Speech API](https://cloud.google.com/text-to-speech/)\nclient.\n\n**[API Documentation](https://nimble.directory/docs/texttospeech)** ·\n**[GitHub Repo](https://github.com/dom96/texttospeech)**\n\n## Installation\n\nAdd this to your application's .nimble file:\n\n```nim\nrequires \"texttospeech\"\n```\n\nor to install globally run:\n\n```\nnimble install texttospeech\n```\n\n## Usage\n\nFollow the \"Before you begin\" steps in this document:\nhttps://cloud.google.com/text-to-speech/docs/quickstart-protocol. Ensure that\nthe ``gcloud`` utility is in your PATH.\n\nYou may then compile and run the following:\n\n```nim\nimport os, options\n\nimport texttospeech\n\n# Initialise the client:\nlet client = newTextToSpeechClient()\n\n# Synthesize a some text:\nlet filename = client.synthesizeToFolder(\"Hello World!\", os.getCurrentDir())\necho(\"Saved in \", filename) # Open the file in your favourite music player.\n\n# Modifying the options:\necho client.synthesizeToFolder(\n  \"Nim is the best programming language!\",\n  os.getCurrentDir(),\n  voice=initVoiceSelectionParams(name=some(\"en-GB-Wavenet-A\")),\n  audioConfig=initAudioConfig(audioEncoding=OGG_OPUS, pitch = -5)\n)\n```\n\n## Contributing\n\n1. Fork it ( https://github.com/dom96/texttospeech/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdom96%2Ftexttospeech","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdom96%2Ftexttospeech","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdom96%2Ftexttospeech/lists"}