![]() ![]() text # The text to say (mutually exclusive with self.infile - low priority) # Pythonified configs (takes macos_speech.CustomClasses) synthe. quality # The audio quality (between 0 and 127 both included) synthe. outfile # The output audio file (default should be 'output.aiff' # but you can specify file and data formats) # Simple configs (takes strings) synthe. infile # A file containing text to say (mutually exclusive with self.text - high priority) synthe. formats # Configuration properties # File IO (takes absolute pathes strings) synthe. bitrates ))) Synthesizer Properties from macos_speech import Synthesizer synthe = Synthesizer () # Helper properties synthe. say ( "Hello!" ) Get informations from macos_speech import Synthesizer speaker = Synthesizer () print ( '''Voices: NAME LANGUAGE DESCRIPTION ''' ) for voice in speaker. text = """How my God! I can make my python code to talk! And I can even send multiple lines! Awesome. Basic usage from macos_speech import Synthesizer speaker = Synthesizer ( voice = 'Alex', device = 'Built-in' ) speaker. Getting Started: Installationįor now, this package only works on Python >= 2.6 and Python >= 3.6.x With the Python macos_speech package you can do it in a pythonic way. Ever wanted to leverage the macOS builtin speech synthesis directly into python ? Or just make your code to talk. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |