Add support for input_audio_transcription parameter in RunConfig
Is your feature request related to a problem? Please describe. We are currently unable to receive AI-powered transcriptions of user speech directly from the ADK. The input_audio_transcription parameter is not supported, and we must rely on parsing role-based text from event.content.parts[].text. This leads to a less streamlined and consistent transcription process compared to the supported output_audio_transcription for AI speech. This inconsistency adds complexity and increases the development effort required to handle both user and AI speech transcriptions within a single system.
Describe the solution you'd like We would like the ADK to support the input_audio_transcription parameter in RunConfig. This would enable direct, AI-powered transcription of user speech, providing a consistent and robust transcription mechanism for all participants in a conversation. The ideal solution would be for input_audio_transcription to function symmetrically to how output_audio_transcription currently works, delivering transcriptions for user speech directly through the ADK's native features.
Describe alternatives you've considered The current workaround is to process user speech transcriptions by parsing the event.content.parts[].text based on the role. While this provides a functional solution, it is not as efficient or reliable as a dedicated transcription parameter. It requires additional code to manage and is prone to breaking if the event structure changes. We also considered implementing a separate, external transcription service, but this would introduce significant latency, complexity, and additional cost, defeating the purpose of using an integrated ADK.
Additional context The lack of input_audio_transcription support was causing validation errors that blocked our entire WebSocket connection. We have applied a critical fix by removing the unsupported parameter, which restored basic functionality. However, this fix highlights the need for a native, supported feature to handle user speech transcription efficiently. Implementing this feature would greatly improve the developer experience and the overall functionality of voice AI applications built with the ADK.
@ngesa254, its already implemented ?
Only output_audio_transcription worked on my side. I also noticed that the documentation only mentioned output_audio_transcription and was silent about input_audio_transcription https://google.github.io/adk-docs/runtime/runconfig/
in you RunConfig add this and tell me if it works pls
run_config = RunConfig(
output_audio_transcription=types.AudioTranscriptionConfig(),
input_audio_transcription=types.AudioTranscriptionConfig(),
)
Thank you for the suggestion, @ac-machache ! I've updated to a newer version of the ADK, and adding input_audio_transcription=types.AudioTranscriptionConfig() to the RunConfig now works without any validation errors.