I have this VBScript that will take some text from the command line and dictate it to a wav file using MS SAPI.
Const SAFT48kHz16BitStereo = 39
Const SSFMCreateForWrite = 3
Set oFileStream = CreateObject("SAPI.SpFileStream")
oFileStream.Format.Type = SAFT48kHz16BitStereo
oFileStream.Open "C:\sample.wav", SSFMCreateForWrite
Set Sapi = CreateObject("SAPI.SpVoice")
Set Sapi.voice = Sapi.GetVoices("Name=Microsoft Sam", "Language=409").Item(0)
Sapi.volume = 100
Sapi.rate = 3
Set args = Wscript.Arguments
Sapi.Speak(args.item(0))
Is it possible to, instead of write the audio to a file, write it to standard output? I'd like to be able to pipe the audio directly to FFMpeg without writing to the file system.
Aucun commentaire:
Enregistrer un commentaire