{"id":24333628,"url":"https://github.com/graysonchen/azure_tts","last_synced_at":"2026-02-12T18:32:59.217Z","repository":{"id":256438643,"uuid":"855262633","full_name":"graysonchen/azure_tts","owner":"graysonchen","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-11T17:28:12.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-30T00:43:57.768Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/graysonchen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-10T15:33:02.000Z","updated_at":"2024-09-11T17:28:22.000Z","dependencies_parsed_at":"2024-09-10T18:59:21.215Z","dependency_job_id":"f7f06480-3620-4b41-85bb-7a06a53d5fa8","html_url":"https://github.com/graysonchen/azure_tts","commit_stats":null,"previous_names":["graysonchen/azure_tts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/graysonchen/azure_tts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graysonchen%2Fazure_tts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graysonchen%2Fazure_tts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graysonchen%2Fazure_tts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graysonchen%2Fazure_tts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graysonchen","download_url":"https://codeload.github.com/graysonchen/azure_tts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graysonchen%2Fazure_tts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29376910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T18:17:34.915Z","status":"ssl_error","status_checked_at":"2026-02-12T18:17:34.495Z","response_time":55,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2025-01-18T03:18:06.720Z","updated_at":"2026-02-12T18:32:59.203Z","avatar_url":"https://github.com/graysonchen.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AzureTTS\n\nAzureTTS is a Ruby gem that provides an interface to Microsoft Azure's Text-to-Speech service. It allows you\nto convert text to speech and save it as an audio file or integrate it with Rails' Active Storage.\n\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'azure_tts'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install azure_tts\n\n## Usage\n\n\nUse the AzureTTS::Client to generate a speech file:\n```\n# config/initializers/azure_tts.rb\nAzureTTS.configure do |config|\n  config.region = \"your_azure_region\"\n  config.api_key = \"your_azure_api_key\"\nend\n```\n\n```\nclient = AzureTTS::Client.new\nclient.speak_file(\"Hello, world!\", \"output.wav\", {gender: :female, name: 'en-US-JennyNeural', language: 'en-US'})\n```\n\n\nSetup Active Storage in the Model\n\n```\nclass MyModel \u003c ApplicationRecord\n  has_one_attached :audio_file\nend\n```\n\n```\nmy_model = MyModel.new\nclient.speak_to_active_storage(\"Hello, world!\", my_model.audio_file, {gender: :female, name: 'en-US-JennyNeural', language: 'en-US'})\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/graysonchen/azure_tts.\n\n## Reference\n\n- https://github.com/csmpfo/Ruby-Lib-for-Microsoft-Azure-Text-2-Speech/tree/master\n- https://github.com/adhearsion/ruby_speech\n- https://github.com/cristianbica/azure-tts\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraysonchen%2Fazure_tts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraysonchen%2Fazure_tts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraysonchen%2Fazure_tts/lists"}