I'm creating .wav
files using marytts.
The kpbs of .wav
files changing according to voice I'm using with the code below. I would like to write every audio file in 128 kpbs.
Due to the program I am planning to use generated .wav
files and only supports 128 kpbs, is there a way to write the .wav
files always 128kpbs?
This is my code:
AudioInputStream audio = marytts.generateAudio(text); //generate audio from text
AudioSystem.write(audio, AudioFileFormat.Type.WAVE, new File("F:\\temp\\" + filename + ".wav"));//save audio as .wav to the static location with filename
return true;//function completed so return true