THE CODE IS PROVIDED FOR EDUCATION PURPOSES ONLY. NOT LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OFĬONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS The library is under the GNU LGPLv3 license.īE AWARE THAT THE AUTHORS ARE UNDER NO CIRCUMSTANCES RESPONSIBLE FOR CONSEQUENCES OF USE ANDĪNY INTERACTION WITH THE LIBRARY. Please, give a star, if you like it.", language_code = "en-US", voice = "ermil", ) ) This example will return File(path="SUypGpSLTvGKTTy.wav", format="wav") License tts ( text = "You are using a Voicy library. Just pass text, language code and voice model: from voicy import Yandex yandex = Yandex () print ( yandex. Please, give a star, if you like it.", confidence=0.93750596, path="84PFetz5IJdT4Je.wav", format="wav")įor using Yandex TTS you don't need to provide any token. stt ( file = "84PFetz5IJdT4Je.wav", language_code = "en-US", ) ) This example will return Transcript(text="You are using a Voicy library. Please, give a star, if you like it.", voice =, ) ) This example will return File(path="84PFetz5IJdT4Je.wav", format="wav")įor using STT you only need to provide a language code.įrom voicy import Google google = Google ( token = "token" ) print ( google. Simple TTS example: from voicy import Google google = Google ( token = "token" ) print ( google. If you don't want to get a token you can use a TTS from Google Translate. Provide it to Google object in init.įor using TTS you need to provide a dictionary where the key is your language code and the value is your voice model.įormat to both you can find in docs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |