pyttsx3 initialization error, can't use pyttsx3

前端 未结 6 568
情话喂你
情话喂你 2021-01-22 03:08

I was having some problems when using the .getproperty(\'voices\') attribute in pyttsx3. So I decided to uninstall it and then re-install it using PIP to see if that may fix the

6条回答
  •  醉酒成梦
    2021-01-22 04:04

    You need to provide a driver key argument to init. 'dummy' or 'sapi5' would work.

    engine = pyttsx3.init('dummy')
    

    or

    engine = pyttsx3.init('sapi5')
    

提交回复
热议问题