stickspot.blogg.se

Google text to speech api
Google text to speech api




google text to speech api

Npm install microsoft-cognitiveservices-speech-sdk Some fairly straightforward code to fetch the. Unlike the text translate API we'll be dealing with audio files so using the official SDK made more sense than simple, raw HTTP requests. I went with es-MX with voice es-MX-HildaRUS. You'll need to look at the supported languages and pick the voice you want. You'll need to set up a translation resource and get your service region as well as API key from the console. They also have neural voices which are supposed to be of higher and more natural quality but it is more expensive (0.5 million characters free per month) and didn't offer Spanish that I was looking for.

google text to speech api

The Text to Speech API API offers a generous free plan of up to 5 million characters free per month, and 4$ per million characters after that, for standard voices (which was the only one available for Spanish): not pleasant to hear at all to put it nicely. For Spanish, they unfortunately didn't offer WaveNet voices which are supposed to be closer to natural voice using some machine learning, and their standard voice was, well. Google's voice sounds much more robotic than what I was hearing from Microsoft. For their higher quality WaveNet voices they offer up to 1 million characters a month free, and $16 per million characters beyond that. The Text to Speech API from google offers up to 4 million characters a month for free, and $4 per 1 million characters after for standard voices. I've proceeded with Microsoft text to speech as the pricing is cheaper than google and the Spanish (latin American) voice sounded more natural than what google provided. I was surprised to find how far machine generated voice has come at reasonable prices as well. Similar to experimentation with text translation APIs in a previous post, I wanted to build on this to get some voice out of the translated words.






Google text to speech api