Skip to content

OpenJarbas/py_responsivevoice

Repository files navigation

Unofficial python API for Responsive Voice

Last tested with ResponsiveVoice - Version 1.8.1

Install

pip install ResponsiveVoice

Example

from responsive_voice import ResponsiveVoice

engine = ResponsiveVoice()
file_path = engine.get_mp3("hello world")
file_path = engine.get_mp3("hello world",
           gender=ResponsiveVoice.MALE,
           rate=0.45)

engine = ResponsiveVoice(lang=ResponsiveVoice.PORTUGUESE_PT)
file_path = engine.get_mp3(u"olá mundo")
get_mp3(sentence, mp3_file=None, lang=None, pitch=None, rate=None, vol=None, gender=None)
  • sentence : The text you want to speak.
  • mp3_file : The name of the output file. If None, this will be generated from the text.
  • pitch : The pitch of the speaker.
  • rate : The rate (speed) of the speaker, value between 0 and 1.
  • vol : The volume (loudness) of the speaker, value between 0 and 1.
  • gender : The gender of the speaker. E.g. ResponsiveVoice.FEMALE

Voices

You can use pre defined configurations, aka, voices

from responsive_voice.voices import EnglishIndia, UkEnglishMale, \
    PortuguesePortugal

india = EnglishIndia()
uk = UkEnglishMale()
pt = PortuguesePortugal()

Credits

ResponsiveVoice

JarbasAI

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages