#Hey hey, are there any ways to specify the file type for a post request? Essentially, can I specify
1 messages · Page 1 of 1 (latest)
Yes, you can specify the output format of the generated audio in your POST request. This is done using the output_format parameter. The available options include:
mp3_22050_32- output format, mp3 with 22.05kHz sample rate at 32kbps.mp3_44100_32- output format, mp3 with 44.1kHz sample rate at 32kbps.mp3_44100_64- output format, mp3 with 44.1kHz sample rate at 64kbps.mp3_44100_96- output format, mp3 with 44.1kHz sample rate at 96kbps.mp3_44100_128- default output format, mp3 with 44.1kHz sample rate at 128kbps.mp3_44100_192- output format, mp3 with 44.1kHz sample rate at 192kbps. Requires you to be subscribed to Creator tier or above.pcm_16000- PCM format (S16LE) with 16kHz sample rate.pcm_22050- PCM format (S16LE) with 22.05kHz sample rate.pcm_24000- PCM format (S16LE) with 24kHz sample rate.pcm_44100- PCM format (S16LE) with 44.1kHz sample rate. Requires you to be subscribed to Pro tier or above.ulaw_8000- μ-law format (sometimes written mu-law, often approximated as u-law) with 8kHz sample rate.
For example, if you want the output to be in WAV format with a 16kHz sample rate, you would set output_format to pcm_16000.
what format do i want so that I can use it in the Unity game engine
For use in the Unity game engine, you can utilize audio files in the WAV format. This format is commonly used in many game engines, including Unity, due to its high quality and compatibility.
If you're using a service like ElevenLabs, you can download your generated audio files in WAV format. To do this, you need to access your history, find the file you want to download, click the 'Download' icon, and select the WAV option.
Remember, the quality of the audio file will also depend on the recording quality. It's recommended to use professional recording equipment, maintain a consistent volume, and record in a noise-free, acoustically-treated room for the best results.
For use in the Unity game engine, what output_format do I want to set when making an api request?