1
import pyttsx3
engine=pyttsx3.init('dummy')
engine.say('Hello')
engine.runAndWait()

While I am executing the following code, I am not getting any errors but I am not getting any voice from the system.Help me what I want to do.

khelwood
  • 55,782
  • 14
  • 81
  • 108
Lokesh
  • 19
  • 2

2 Answers2

0

This should work:

import pyttsx3
engine = pyttsx3.init()
engine.say("Hello")
engine.runAndWait()
Ameya Uppina
  • 131
  • 1
  • 3
  • 13
0

Actually 'dummy' is a test driver that does not do anything. Try using 'sapi5' or leave it empty.
import pyttsx3 engine=pyttsx3.init('sapi5')

(or)

import pyttsx3 engine=pyttsx3.init()

Hope it works!

Logadheep
  • 1
  • 2