Language Support and Multilingual Voices

It is possible to use AudioStack to generate speech in a variety of languages.

You don't need to do anything differently too generate speech in a language other than English. Simply enter your script in the desired language and choose a voice where the language is supported from the library.

πŸ“˜

Did you know?

AudioStack currently supports over 60 languages!

πŸ‡«πŸ‡· Code Example - Je veux un exemple franΓ§ais

import audiostack
import os

## Enter your API Key here
audiostack.api_key = "APIKEY"

print("Creating your script...")
script = """
<as:section name="main" soundsegment="main">
Le Danois de 20 ans affronte sur le court Suzanne-Lenglen, en huitiΓ¨mes de finale, le surprenant Francisco Cerundolo. Le vainqueur pourrait retrouver au tour suivant le finaliste de l’an passΓ©, Casper Ruud.
</as:section>
"""



names = ["eloise", "maurice"]
presets = ["balanced"]
templates = ["melancholy_percussion"]


script = audiostack.Content.Script.create(scriptText=script, scriptName="french_test", projectName="french_test")        

print(f"Generating speech for {names}")
for name in names:
    # Creates text to speech
    speech = audiostack.Speech.TTS.create(
            scriptItem=script,
            voice=name,
    )
    for template in templates:

        for preset in presets:
            print("Mixing and mastering...")
            mix = audiostack.Production.Mix.create(
                speechItem=speech,
                soundTemplate=template,
                masteringPreset=preset,
            )
            print("Downloading your file...")
            mix.download(fileName=f"{name}_{template}_{preset}")