#295·podcastfy

Can't change gemini tts voices due to Runtime error.

Author: Guilh3rme-M3ndesCreated Nov 3, 2025Updated Dec 19, 2025

Hi, i've been using the podcastfy package integrated to an next.js application. First of all, i would like to say that so far i've been liking a lot using the podcast generation function, but here's what i'm dealing with. Considering the poor quality of the openai tts when it comes to multilingual content, i decided to use the gemini (unfortunately not the geminimulti as the allowlist has been closed) tts model. Since then, i've been receiving this error when trying to use the voices Algieba and Gacrux (both are good with non english content):

RuntimeError: Failed to generate audio: 400 This voice requires a model name to be specified.

Is there a way to specify the exact model name diffrent from what i'm doing?

Here's my current setup:

config = { "conversation_style": ["casual", "humorous"], "output_language": idioma, "podcast_name": "Medpontos", "podcast_tagline": "A ferramenta que te ajuda a aprender mais em menos tempo!", "creativity": 1, "text_to_speech": { "default_tts_model": "gemini", "gemini": { "model": "gemini-2.5-pro-tts", "default_voices": { "question": "Algieba", "answer": "Gacrux" }, }, "ending_message": "Foi um prazer compartilhar conhecimento com você. Esperamos te ver novamente no próximo resumo do MedPontos." }} instrucao = f"O conteúdo está em '{idioma}'. Gere o podcast nesse idioma. Audio sem sotaques, afim de preservar as caracteristicas do idioma. O tempo deve ser entre 8 e 15 minutos de conversa" conteudo = f"{instrucao} PDF: {conteudo_pdf} \n" generated_podcast = generates_podcast( text=conteudo, tts_model="gemini", api_key_label=os.getenv("GEMINI_API_KEY"), llm_model_name="models/gemini-2.5-pro", conversation_config=config )