B4J Question [Solved]How to resolved PyThaiTTS by Pyttsx3

Theera

Expert
Licensed User
Longtime User
Refer to this and other I've tried to code as attached file
 

Attachments

  • Project.zip
    7.5 KB · Views: 20
Solution
You are missing the first argument which is the property name:
B4X:
Dim volume As PyWrapper=ThaiTTSEngine.Run("setProperty").Arg("volume").Arg(0.9)

Theera

Expert
Licensed User
Longtime User
pip install pyttsx3 is Passed ,My error is
Server is listening on port: 56786
Python path: C:\Python\Python313\python.exe
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
connected
starting PyBridge v1.00
watchdog set to 30 seconds
Connecting to port: 56786
Error occurred on line: 99 (B4XMainPage)
(b4xmainpage.CreateEngine) - Python Error (TypeError) - Method: Engine.setProperty: Engine.setProperty() missing 1 required positional argument: 'value'
Error occurred on line: 104 (B4XMainPage)
(b4xmainpage.CreateEngine) - Python Error (TypeError) - Method: Engine.setProperty: Engine.setProperty() missing 1 required positional argument: 'value'
Error occurred on line: 108 (B4XMainPage)
(b4xmainpage.CreateEngine) - Python Error (TypeError) - Method: Engine.setProperty: Engine.setProperty() missing 1 required positional argument: 'value'
 
Upvote 0
Top