How to set language in Whisper pipeline for audio transcription?

I want to use speech transcription with openai/whisper-medium model using pipeline

But I need to get the specified language in the output

I tried generate_kwargs=dict(forced_decoder_ids=forced_decoder_ids,) where forced_decoder_ids = processor.get_decoder_prompt_ids(language="french", task="transcribe") But the output is just an empty response: {'text': '', 'chunks': []}

Is there a way to set the language?