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);
...
Environment details
Steps to reproduce
This is a re-open of #454 for https://github.com/jsalsman/gemini-live
Thank you for your kind help!