{"id":29440858,"url":"https://github.com/ne0blaze/edge-tts-go","last_synced_at":"2025-08-27T07:19:26.514Z","repository":{"id":303071005,"uuid":"1014287839","full_name":"Ne0Blaze/edge-tts-go","owner":"Ne0Blaze","description":"Use Microsoft Edge's online text-to-speech service from golang WITHOUT needing Microsoft Edge or Windows or an API key","archived":false,"fork":false,"pushed_at":"2025-07-05T13:28:12.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-13T12:36:58.960Z","etag":null,"topics":["edge","golang","golang-package","tts","tts-api"],"latest_commit_sha":null,"homepage":"","language":"Go","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/Ne0Blaze.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,"zenodo":null}},"created_at":"2025-07-05T12:19:34.000Z","updated_at":"2025-07-05T13:33:41.000Z","dependencies_parsed_at":"2025-07-05T14:51:59.577Z","dependency_job_id":null,"html_url":"https://github.com/Ne0Blaze/edge-tts-go","commit_stats":null,"previous_names":["ne0blaze/edge-tts-go"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Ne0Blaze/edge-tts-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ne0Blaze%2Fedge-tts-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ne0Blaze%2Fedge-tts-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ne0Blaze%2Fedge-tts-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ne0Blaze%2Fedge-tts-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ne0Blaze","download_url":"https://codeload.github.com/Ne0Blaze/edge-tts-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ne0Blaze%2Fedge-tts-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272209104,"owners_count":24892316,"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","status":"online","status_checked_at":"2025-08-26T02:00:07.904Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["edge","golang","golang-package","tts","tts-api"],"created_at":"2025-07-13T12:16:04.364Z","updated_at":"2025-08-27T07:19:26.507Z","avatar_url":"https://github.com/Ne0Blaze.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# edge-tts-go\n\n`edge-tts-go` is a Go module that allows you to use Microsoft Edge's online text-to-speech service from within your Go code.\n\n## Installation\n\nTo install it, run the following command:\n\n```sh\ngo get github.com/neoblaze/edge-tts-go\n```\n\n## Usage\n\n### Basic Usage\n\nHere is a basic example of how to convert text to speech:\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"log\"\n\n\t\"github.com/neoblaze/edge-tts-go/edgeTTS\"\n)\n\nfunc main() {\n\ttext := \"The quick brown fox jumps over the lazy dog near the shimmering lake at dawn.\"\n\tvoice := \"en-IN-NeerjaNeural\"\n\n\tresponse, err := edgeTTS.CreateEdgeTtsAudio(context.Background(), text, voice)\n\tif err != nil {\n\t\tlog.Fatalf(\"Error creating edge tts audio: %v\", err)\n\t}\n\n\tfmt.Printf(\"Audio saved to: %s\\n\", response.AudioFile)\n\tfmt.Printf(\"Original text: %s\\n\", response.Text)\n\n\t// The response also contains speech marks for word timings\n\t// for _, mark := range response.SpeechMarks {\n\t// \tfmt.Printf(\"Word: '%s' at %dms\\n\", mark.Value, mark.Time)\n\t// }\n}\n```\nThis will create an mp3 file with a random UUID as its name (e.g., `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.mp3`) in the current directory.\n\n### Listing Available Voices\n\nYou can get a list of all available voices that can be used.\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\n\t\"github.com/neoblaze/edge-tts-go/edgeTTS\"\n)\n\nfunc main() {\n\tvoices, err := edgeTTS.ListVoices()\n\tif err != nil {\n\t\tlog.Fatalf(\"Failed to get voices: %v\", err)\n\t}\n\n\tfor _, voice := range voices {\n\t\tif voice.Locale == \"en-US\" {\n\t\t\tfmt.Printf(\"Name: %s, ShortName: %s, Gender: %s\\n\",\n\t\t\t\tvoice.Name, voice.ShortName, voice.Gender)\n\t\t}\n\t}\n}\n```\n\nThis will output something like:\n```\nName: Microsoft Server Speech Text to Speech Voice (en-US, AnaNeural), ShortName: en-US-AnaNeural, Gender: Female\nName: Microsoft Server Speech Text to Speech Voice (en-US, AriaNeural), ShortName: en-US-AriaNeural, Gender: Female\nName: Microsoft Server Speech Text to Speech Voice (en-US, ChristopherNeural), ShortName: en-US-ChristopherNeural, Gender: Male\n...\n```\n\nYou can use the `ShortName` (e.g., `en-US-AriaNeural`) for the `voice` parameter in `CreateEdgeTtsAudio`.\n\n## Acknowledgements\n\nThis library is based on the work from:\n* https://github.com/rany2/edge-tts\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fne0blaze%2Fedge-tts-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fne0blaze%2Fedge-tts-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fne0blaze%2Fedge-tts-go/lists"}