{"id":19861188,"url":"https://github.com/paractmol/txt2speech","last_synced_at":"2025-05-02T04:30:30.551Z","repository":{"id":24526394,"uuid":"27932574","full_name":"paractmol/txt2speech","owner":"paractmol","description":"Convert text to speech using Google Translate API","archived":false,"fork":false,"pushed_at":"2017-08-01T20:43:55.000Z","size":35,"stargazers_count":38,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-03T13:54:07.686Z","etag":null,"topics":["bing","ruby","speech"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/paractmol.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":"2014-12-12T18:23:22.000Z","updated_at":"2024-08-21T21:57:00.000Z","dependencies_parsed_at":"2022-08-22T23:40:43.472Z","dependency_job_id":null,"html_url":"https://github.com/paractmol/txt2speech","commit_stats":null,"previous_names":["rudkovsky/txt2speech","paractmol/txt2speech"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paractmol%2Ftxt2speech","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paractmol%2Ftxt2speech/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paractmol%2Ftxt2speech/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paractmol%2Ftxt2speech/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paractmol","download_url":"https://codeload.github.com/paractmol/txt2speech/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251986635,"owners_count":21675950,"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":["bing","ruby","speech"],"created_at":"2024-11-12T15:08:16.229Z","updated_at":"2025-05-02T04:30:30.146Z","avatar_url":"https://github.com/paractmol.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/rudkovskyi/txt2speech.svg?branch=master)](https://travis-ci.org/rudkovsky/txt2speech)\r\n\r\ntxt2speech is a very simple library that by using Google Translate undocumented API allow you convert text to speech.\r\n\r\n```\r\nbin/txt2speech -r README.md -f -o example.mpg\r\n```\r\n\r\n### To use library directly in your application just install gem and run\r\n\r\n```\r\n2.1.2 :001 \u003e require 'txt2speech'\r\n =\u003e true\r\n2.1.2 :010 \u003e f = Txt2Speech::Speech.new \"Hello I am Google robot! Nice to meet you, hope you'll enjoy this script and will fork it\"\r\n =\u003e #\u003cTxt2Speech::Speech:0x000000022314f8 @text=\"Hello I am Google robot! Nice to meet you, hope you'll enjoy this script and will fork it\", @lang=\"en\"\u003e\r\n2.1.2 :011 \u003e f.save('out.mpg')\r\n```\r\n\r\nor you can load a text file to read it\r\n\r\n```\r\n2.1.2 :006 \u003e f = Txt2Speech::Speech.load \"README.md\"\r\n =\u003e #\u003cTxt2Speech::Speech:0x000000022314f8 @text=\"txt2Speech is a simple ruby script that convert text to speech by using Google Translate.\\r\\n\\r\\n```\\r\\n2.1.2 :001 \u003e require './txt2speech.rb'\\r\\n =\u003e true\\r\\n2.1.2 :002 \u003e f = Txt2Speech.new \\\"Hello I am google! Nice to meet you\\\"\\r\\n =\u003e #\u003cTxt2Speech:0x000000018aafd8 @text=\\\"Hello I am google! Nice to meet you\\\", @lang=\\\"en\\\"\u003e\\r\\n2.1.2 :003 \u003e f.save(\\\"out.mpg\\\")\\r\\n =\u003e \\\"out.mpg\\\"\\r\\n```\\r\\n\\r\\nor you can load a text file to read it\\r\\n\\r\\n```\\r\\nt = Txt2Speech.load \\\"\\#{Dir.home}/text.txt\\\"\\r\\nt.save(\\\"out.mpg\\\")\\r\\n```\", @lang=\"en\"\u003e\r\n2.1.2 :007 \u003e f.save(\"out.mpg\")\r\n```\r\n\r\nThe differences between Google and Bing - [How Google and Bing protects their API](https://rudk.ws/2016/10/23/how-google-and-bing-protects-their-api/)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparactmol%2Ftxt2speech","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparactmol%2Ftxt2speech","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparactmol%2Ftxt2speech/lists"}