top of page
Search
Writer's picturedayal nigam

What is pyttsx3?

pyttsx3 is text-to-speech conversion library in python unlike alternative libraries it works offline and compaitable to both the versions of python 2 OR 3.

It supports two voices 1.female(ZIRA)

2.male(DAVID)

to detect which voice is present on your PC write the following lines of codes

import pyttsx3

//pip install pyttsx3

engine = pyttsx3.init('sapi5') //this sapi5 is provided by the google you can search

voices = engine.getProperty('voices') //the function getProperty used to get the voices available on your pc's

print(voices[0].id) //voices[0] is the array values if u put [1] it shows female voice






15 views0 comments

Recent Posts

See All

Comentários


bottom of page