Skip to content

Live inputTranscription server messages are not sent #478

Description

@jsalsman

Environment details

  • Programming language: JavaScript
  • OS: all
  • Package version: js-genai 0.9.0

Steps to reproduce

import { GoogleGenAI, Modality } from 'https://esm.run/@google/genai@0.9.0';
genAI = new GoogleGenAI({ apiKey: API_KEY });
liveSession = await genAI.live.connect({
    model: "gemini-2.0-flash-live-001",
    audioConfig: { targetSampleRate: 16000 },
    inputAudioTranscription: {}, // Enable audio transcription, not working
    config: {
        responseModalities: [Modality.TEXT],
    },
    callbacks: {
        onmessage: (message) => {
            if (message.inputTranscription) {
                    console.log("You said: " + message.inputTranscription);
...

This is a re-open of #454 for https://github.com/jsalsman/gemini-live

Thank you for your kind help!

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: 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