Skip to content

Audio transcription not returned in response when using gemini-live-2.5-flash-preview-native-audio and following documentation #1279

Closed as not planned

Description

@Braga-Pedro

Hi,

I'm trying to use the Vertex AI Gemini Live API to get audio transcription for both input and output audio, following the official documentation:
https://cloud.google.com/vertex-ai/generative-ai/docs/live-api?hl=pt-br#transcribe_audio

I'm using the recommended model for audio transcription:
gemini-live-2.5-flash-preview-native-audio

My configuration is as follows:

# config.py
if api_config.use_vertex:
    MODEL = os.getenv('MODEL_VERTEX_API', 'gemini-live-2.5-flash-preview-native-audio')
else:
    MODEL = os.getenv('MODEL_DEV_API', 'models/gemini-live-2.5-flash-preview-native-audio')

CONFIG = {
    "generation_config": {
        "response_modalities": ["AUDIO"],
        "output_audio_transcription": {},
        "input_audio_transcription": {},
        "speech_config": VOICE,
    },
    "system_instruction": SYSTEM_INSTRUCTIONS
}

I send audio data to the model like this:

# websocket_handler.py
async for message in websocket:
data = json.loads(message)
if data["type"] == "audio":
    await session.genai_session.send(input={
        "data": data.get("data"),
        "mime_type": "audio/pcm"
    }, end_of_turn=True)

And I process the response as follows:

# websocket_handler.py
if data["type"] == "audio":
    await session.genai_session.send(input={
        "data": data.get("data"),
        "mime_type": "audio/pcm"
    }, end_of_turn=True)x

Problem:
Even though I am using the correct model and configuration, and sending audio as described in the documentation, the input_transcription and output_transcription fields in the response are always missing.
I have tried with both Vertex and Dev endpoints, but the transcription is never returned.

Environment:

Model: gemini-live-2.5-flash-preview-native-audio
Endpoint: Vertex AI (VERTEX_API=true)
Python SDK: google-genai
Audio format: PCM, 16kHz
References:

Vertex AI Gemini Live API - Transcribe audio
Vertex AI Gemini Live API - Output fields
Expected behavior:
When sending audio, the response should contain the transcription in input_transcription.text and/or output_transcription.text as described in the documentation.

Actual behavior:
The transcription fields are always missing.

Questions:

Is there any additional configuration required to enable audio transcription?
Is this a known issue with the current model or SDK?
Is there any way to debug or inspect why the transcription is not being returned?
Thank you for your help!

Activity

  1. added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Aug 18, 2025
  2. added
    priority: p3Desirable enhancement or fix. May not be included in next release.
    and removed
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Aug 19, 2025
  3. Braga-Pedro commented on Aug 19, 2025

    @Braga-Pedro
    Author

    I am trying with the models:

    • gemini-2.0-flash-live-preview-04-09
    • gemini-live-2.5-flash-preview-native-audio
    • gemini-live-2.5-flash

    But not success.

  4. shivvaam0001 commented on Sep 24, 2025

    @shivvaam0001

    Hi @Braga-Pedro

    We heard your feedback and We have released the new gemini-2.5-flash-native-audio-preview-09-2025 model. Could you please try this and check if it resolves your issue with the new model and let us know what you think?

    Thank you for your patience.

  5. Braga-Pedro commented on Oct 9, 2025

    @Braga-Pedro
    Author

    thanks for reply @shivvaam0001 , i tested with the gemini-2.5-flash-native-audio-preview-09-2025 model but ir returned this erro:

    2025-10-09 11:44:56,064 - ERROR - Error establishing realtime session: received 1008 (policy violation) Permission 'aiplatform.endpoints.predict' denied on resource '//aiplatform.googleapis.com/projects/andy-voice-470817/locati; then sent 1008 (policy violation) Permission 'aiplatform.endpoints.predict' denied on resource '//aiplatform.googleapis.com/projects/andy-voice-470817/locati

  6. jval7-aceup commented on Oct 14, 2025

    @jval7-aceup

    I'm experiencing the same problem. Do you have any updates?

  7. Braga-Pedro commented on Oct 15, 2025

    @Braga-Pedro
    Author

    I'm experiencing the same problem. Do you have any updates?

    I havent had an updates yet ;(

  8. jval7-aceup commented on Oct 15, 2025

    @jval7-aceup

    @Braga-Pedro Hi try with >=1.43.0 version, it worked for me with gemini-2.5-flash-native-audio-preview-09-2025

    I have identified previus version does not have the field for the transcripts

    Image Image
  9. abhinav-TB commented on Oct 28, 2025

    @abhinav-TB

    same issue here

  10. shivvaam0001 commented on Nov 13, 2025

    @shivvaam0001

    Hi @Braga-Pedro, @abhinav-TB

    Could you please try using version 1.43.0 and let me know if you are still experiencing the same issue?

  11. abhinav-TB commented on Nov 14, 2025

    @abhinav-TB

    @shivvaam0001 , it worked for me after a couple of days

  12. github-actions commented on Nov 22, 2025

    @github-actions

    This issue has been marked as stale because it has been open for 7 days with no activity. It will be closed in 2 days if no further activity occurs.

  13. github-actions commented on Nov 24, 2025

    @github-actions

    This issue was closed because it has been inactive for 9 days. Please post a new issue if you need further assistance. Thanks!

  14. sbenodiz commented on Jan 3, 2026

    @sbenodiz

    I have the same issue, any updates ?

  15. Marincor commented on Jan 7, 2026

    @Marincor

    any updates?

  16. shivvaam0001 commented on Jan 13, 2026

    @shivvaam0001

    Hi @sbenodiz & @Marincor

    Since this issue has been resolved, could you share some additional details about your issue?

    Thanks!

  17. sbenodiz commented on Jan 13, 2026

    @sbenodiz

    It works for me! Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

priority: p3Desirable enhancement or fix. May not be included in next release.status:awaiting user responsestatus:staletype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions