6 ms·
Edge TTS
- chopete3 2y agoIts not running on the edge. A hack to use MS online tts. >> edge-tts is a Python module that allows you to use Microsoft Edge's online text-to-speech service from within your Python code or using the provided edge-tts or edge-playback command.
- wiradikusuma 2y agoEdge = Microsoft Edge, a browser
- croes 2y agoI guess parent wanted just to clarify that it’s using Edge not running on the edge.
- nejsjsjsbsb 2y agoI read it first as Edge TTL!
- modeless 2y agoWhy would you pirate a TTS service when there are so many great options for local open source TTS now? Models like Fish and Kokoro and StyleTTSv2 are great and very fast. Click the leaderboard tab here: https://huggingface.co/spaces/TTS-AGI/TTS-Arena https://huggingface.co/spaces/TTS-AGI/TTS-Arena
- userbinator 2y ago"pirate"? This was always free.
- modeless 2y agoThe API endpoint was clearly intended for use only by Edge. Yes, reverse engineering the authentication (even if trivial) and using it for other applications, knowing that was not its intended use, I consider a form of piracy.
- userbinator 2y agoThat is a very hazardous slope to go down. We are already seeing user-agent discrimination and this is no different than using Bing from a browser that isn't Edge.
- TOMDM 2y agoIf Bing wasn't a public website and only accessable through the windows Search bar/Edge without reverse engineering the API I'd agree with you. Comparing an API that typically requires a key and a public website is absurd.
- userbinator 2y agoIt's still publicly accessible.
- itake 2y agoI'm not really sure how this is any different from a web crawler? I guess the issue would be republishing the content is bad. But I thought the LinkedIn lawsuit settled that crawlers are ok, as long as you're not republishing the content?
- homarp 2y agoor directly try https://kokorotts.com/ https://kokorotts.com/ or https://huggingface.co/spaces/hexgrad/Kokoro-TTS https://huggingface.co/spaces/hexgrad/Kokoro-TTS
- itake 2y agoThe models you shared only support the top ~10 languages / english only. I believe the Edge API supports more models: https://gist.github.com/BettyJJ/17cbaa1de96235a7f5773b8690a20462 https://gist.github.com/BettyJJ/17cbaa1de96235a7f5773b8690a2... Do you know any commercial licensed TTS that support 50+ languages and are relatively small (e.g. many small models, not 1 big model)? Meta's open models supports like 300 languages, but the license doesn't permit commercial use :-/
- archerx 2y agoI have been experimenting with piper TTS recently, it's free, open source, fast and has a lot of voices in different languages but the quality is not the best but it's still good enough for most cases. https://rhasspy.github.io/piper-samples/ https://rhasspy.github.io/piper-samples/
- deadprogram 2y agoI also have used Piper and agree it is worth trying out.
- magicalhippo 2y agoFor my native language, Norwegian, Piper TTS is at best "usable", and sometimes a fair bit worse than that. At least in its default form[1]. Especially the rhythm and timing is often very jarring making words difficult to understand, especially when the pitch is not quite right. It also doesn't seem to know about pacing, ignoring semicolon and comma. Combined I often need to think hard about what it just said, or even listen to it again. I also notice these issues in the various English voice models to varying degrees, so seems to be an inherent problem. Or can it be improved significantly with training it yourself? [1]: https://rhasspy.github.io/piper-samples/ https://rhasspy.github.io/piper-samples/
- archerx 2y agoI don’t know about Norwegian but I wonder if the issues are due to the training data. I’m sure it’s possible to train new voices. The English voices are hit or miss, but some voices have up to 900 speakers so it should be able to find a nice voice in the hay stack. The thing I like about piper is it is so fast. I set it up to stream the output to VLC and it starts speaking in less than a second even on my laptop. I wish it could have eleven labs quality but right now the speed is the most important factor for what I’m doing with it.
- noja 2y agoTyping anything with “r” into that text to speech box gives a random sentence instead
- natebc 2y agoIs Kokoro open source? I couldn't find it's source anywhere.
- caseyy 2y agoSo is this entirely offline? If so, it could have quite many useful applications, if not for copyleft of course.
- userbinator 2y agoEntirely online.
- caseyy 2y agoAh, thanks.
- slyn 2y agoI like to use Edge on occasion when I need to read something dry but necessary because I find following along with the TTS it’s auto-highlight of text helps me stay focused and retain better as well. Is there any equivalent program for ebooks? If not can someone build one? The dream would be to plop in an arbitrary document (pdf, docs, tex, epub, and so on) and have it read to me by a reasonable TTS at a speed of my choosing and have words / lines highlighted as the TTS goes along. Bonus points if you can regularly identify and skip things that are not necessarily relevant like page numbers, headers, footnote markers, and so on, which is something that Edge TTS within Edge struggles with when reading PDFs.
- lf-non 2y agoThe ReadEra app for android supports this, and I use it for reading/listening to ebooks during commute. It works well.
- gostsamo 2y agoYou can use a screen reader. Most of them have a focus highlight feature and use local tts.
- FireInsight 2y agoI've been using https://readest.com/ https://readest.com/ lately. It's FOSS and just recently got this feature. The TTS voices are pretty natural and text is highlighted one sentence at a time. Plus the design of the product is great.
- jahsome 2y agoCalibre does this.
- tomr75 2y agocan you use TTS models?
- visarga 2y agohttps://www.naturalreaders.com/ https://www.naturalreaders.com/, is has a free tier I think
- dcre 2y agoNot sure if the CLI does this directly, but here's a command that takes text either as an arg or through stdin. function tts() { if [ -p /dev/stdin ]; then edge-playback --file - else edge-playback --text "$*" fi }
- BrunoJo 2y agoI wouldn't use Edge TTS for commercial projects since it's using an internal Microsoft API that was reverse engineered. If you are looking for a commercial API, I just launched a TTS API powered by the the best performing open source model Kokoro: https://www.lemonfox.ai/text-to-speech-api https://www.lemonfox.ai/text-to-speech-api. The API is compatible with OpenAI and ElevenLabs and up to 25x cheaper.
- qqqult 2y agoor run a kokoro tts docker container on your own hardware, the hw requirements aren't crazy: https://github.com/remsky/Kokoro-FastAPI https://github.com/remsky/Kokoro-FastAPI
- ipsum2 2y agoBetter yet, you can run it on your browser, in Javascript and not pay any fees! https://huggingface.co/spaces/webml-community/kokoro-web https://huggingface.co/spaces/webml-community/kokoro-web
- rany_ 2y agoIt's worth noting that there have been occasions where the library was blocked and it took a few weeks to workaround said block. For example, when a valid Sec-MS-Token became required, it took a while to implement it in the library: https://github.com/rany2/edge-tts/blob/08b10b931db3f788a506c0b48ae02f932bbb050d/src/edge_tts/drm.py https://github.com/rany2/edge-tts/blob/08b10b931db3f788a506c... Basically, it's a very bad idea to use this library for anything serious/mission critical. It also is really limited to only taking in text (i.e., no custom SSML, emotion elements, etc) as Microsoft restricts the API to only the features Microsoft Edge itself already supports. Generally commercial users would want these more advanced features and so they'd want to use Azure Cognitive Services. At any rate this library was never really marketed, I'm not sure how it blew up. It was really only intended so that I can have audio files I can play back for my Home Assistant instance. Later, I started using it to generate e-books. In general, these are the two main uses of the library AFAIK.
- ghxst 2y ago
- gigel82 2y agoThis is dubious, I'm surprised MS hasn't locked down those APIs yet. I'm curious, would this be the legal equivalent of "cracked" software in terms of piracy?
- rany_ 2y agoThey have locked down these APIs slightly but it's not a very complex "DRM" mechanism: https://github.com/rany2/edge-tts/blob/08b10b931db3f788a506c0b48ae02f932bbb050d/src/edge_tts/drm.py https://github.com/rany2/edge-tts/blob/08b10b931db3f788a506c...
- ale42 2y agoSure, but if everybody starts (ab)using this they'll change it again with something more complex. Or they will restrict it, like leaving it usable only by users logged in on their MS account.
- bangaladore 2y agoIn reality, you should be more worried about a DMCA claim or cease and desist. Microsoft cannot move fast enough to present any real concern to someone who is dedicated. The Microsoft login seems more reasonable, at that point they can filter out bad actors presumably.
- userbinator 2y agoDon't ever let them convince you that you can't find out what code running on your own computer is doing.
- ale42 2y agoOf course not... as long as the code is actually running on my computer. If it need authentication, it's another story.
- hexage1814 2y agoHave been using this for some time. It is pretty good. But not as good as ElevenLabs though. Also, ironically enough, ElevenLabs lunched a readerapp for iOS and Android, which allows you to text to speech for "free" in some limited voice selections, but the app is not available for PC or as browser extension. So like "we give you unlimited tts but only if you use your smartphone"
- RobinHirst11 2y agoused this for ages. i have my raspberry pi setup with Cloudflare tunnels to rout to my domain... extremely useful :)
- VMtest 2y agoThanks for sharing this, I learnt that Edge on mobile has TTS as well but I have never used it on desktop or mobile Now that I try it on desktop, it's really good! I might try to use the python script in the future
- slig 2y agoI'd like the equivalent of "say" from macOS on my W11/WSL2 machine, is there anything entirely offline that just works?
- yapyap 2y agoDo what now to TTS
- westcort 2y agoCan anyone just make a simple program that will use one of these better TTS engines. I just want a a dialog box, a big button that says "Generate text" and you paste in the content you want converted to receive an MP3 file. Fully compiled binaries for Linux, Windows, and Mac, please?