I am trying to use Piper TTS and Audio Recorder to generate a wav file based on text input. I set up the args to open './response.wav' as the audio output file. Currently, when I process one string it generates the speech however, on subsequent strings it appends to the file. Ex: string1 = response1, string2 = response1 + response2. Is there an argument or way to overwrite the response.wav instead of appending to it? Let me know if there are any more questions - I tried digging through the code but got lost :)
Hi,
I am trying to use Piper TTS and Audio Recorder to generate a wav file based on text input. I set up the args to open './response.wav' as the audio output file. Currently, when I process one string it generates the speech however, on subsequent strings it appends to the file. Ex: string1 = response1, string2 = response1 + response2. Is there an argument or way to overwrite the response.wav instead of appending to it? Let me know if there are any more questions - I tried digging through the code but got lost :)
Code Snippets: args = ArgParser(extras=['tts', 'audio_output', 'prompt', 'log', 'voice', 'voice-speaker']).parse_args() args.tts = 'piper' args.audio_output_file = './response.wav' args.verbose = True args.voice= 'en_US-hfc_male-medium'
tts = AutoTTS.from_pretrained(**vars(args))
tts.process(reply)