1

I am trying to create a speak application by using a VBScript instead of using the pyttsx3 python library. My application works very well but whenever I call the VBS from python, an extra command window pops up which I don't want.

My python code:

import subprocess
subprocess.call('cmd /c TextSpeak.vbs')

Here's what I tried:

import subprocess
console = subprocess.call('cmd /c TextSpeak.vbs')
CREATE_NO_WINDOW = 0x08000000
subprocess.call('taskkill /F /IM exename.exe', creationflags=CREATE_NO_WINDOW)

It opens VBS shell which I don't need and it quite annoying.

Any help?

Code example will be more helpful Thanks.

Étienne Laneville
  • 4,697
  • 5
  • 13
  • 29
CoderBittu
  • 39
  • 1
  • 6

0 Answers0