I’m working on a script to assist with audio dataset creation for training tts software. I have a demo script using sounddevice and soundfile that can record a single audio file and end recording on keyboard interrupt, but I can’t seem to figure out how to make it repeatable.
Ideally the flow would look like this
Show a sentence
Press enter to start recording
Press other key or ctrl+c to stop
Option of pressing r to re record the last sentence
Show next sentence and repeat