Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

pyttsx3 female voice template

import pyttsx3

engine = pyttsx3.init()

# rate
engine.setProperty('rate', 150)

# voice
voices = engine.getProperty('voices')
engine.setProperty('voice', voices[1].id)


def speak(text):
    engine.say(text=text)
    engine.runAndWait()
Comment

PREVIOUS NEXT
Code Example
Python :: Insert missing data in pandas 
Python :: convert string to list python 
Python :: python 3 numbers of a range is even 
Python :: port 5432 failed: Connection timed out (0x0000274C/10060) Is the server running on that host and accepting TCP/IP connections? 
Python :: python - remove duplicate items from the list 
Python :: python make directory tree from path 
Python :: is flask open source 
Python :: django and operator 
Python :: datediff in seconds in pandas 
Python :: get column number in dataframe pandas 
Python :: python selenium find by class name 
Python :: pip is not a batch command but python is installed 
Python :: pandas apply function to every row 
Python :: smtplib not sending email 
Python :: how to flatten a nested list in python 
Python :: python make file path os 
Python :: django query field is null 
Python :: docx change font python 
Python :: create a list of a certain length python 
Python :: remove spaces from string python 
Python :: python number and name of weekday 
Python :: json filter python 
Python :: python get value from decimal object 
Python :: how to sort tuples in list python 
Python :: OS Error: Connection refused, errno = 111, address = 127.0.0.1, port = 43350 
Python :: check if camera is being used python 
Python :: how to reboot a python script 
Python :: random sample with weights python 
Python :: procfile heroku python example 
Python :: get last element of a list python 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =