top of page
Search

What is pyttsx3?

Writer's picture: dayal nigamdayal nigam

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

Comments


Email: iotianhub@gmail.com

created by IOTIANS

about us

IotianHub.com is your one-stop destination for Electronics, IoT, Robotics components, Embedded system, Instrumentation, Control and Automation. Its clients are institutions, industries and students. we are working towards excellence in IoT, AI and Robotics domain and believe in pursuing business through innovation and technology. Our team goal is to be a leader in the industry by providing enhanced services, products, relationship and profitability.

IotianHub offers are 100% practical in nature; these involve various hardware and software. Apart from services it also supplies educational kits to the institutions and customized products to various industries.

POLICIES

Copyright ©2020,IotianHub, All rights reserved.

bottom of page