Python Forum
pyttsx3 cuts off when run from py file
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pyttsx3 cuts off when run from py file
#5
I would recommend trying this as it works fine for me

import pyttsx

x = pyttsx.init()

def say(text):  #variabe name shortcut
    k.say(text)
    k.runAndWait()



    
say('hello there fellow python user')
although this doesn't work on my current desktop, this has worked on previous devices and the voice duration is perfectly fine

for any further information, you could use the package site for further instructions during use
Reply


Messages In This Thread
RE: pyttsx3 cuts off when run from py file - by DrNerdly118 - Dec-20-2018, 04:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Controlling text-to-speech pauses with pyttsx3 pmac1300 4 4,721 Mar-14-2022, 06:47 AM
Last Post: Coricoco_fr
  pyttsx3 cutting off last word Extra 3 3,067 Feb-28-2022, 11:20 PM
Last Post: BashBedlam
  pyttsx3 problem Tyrel 0 1,173 Feb-05-2022, 08:53 AM
Last Post: Tyrel
  Know when the pyttsx3 engine stops talking UsualCoder 3 3,379 Aug-29-2021, 11:08 PM
Last Post: snippsat
  working with pyttsx3 gr3yali3n 0 1,664 Nov-24-2020, 09:40 AM
Last Post: gr3yali3n

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020