Adapt voxtral_realtime to mistral-common 1.11.5 audio API (#46920)
* Adapt voxtral_realtime to mistral-common 1.11.5 audio API
- Use mistral_common.tokens.tokenizers.audio.Audio and pass base64 audio
directly instead of the deprecated RawAudio (removed in mistral-common 1.13.0)
- Use get_num_delay_tokens() instead of the deprecated num_delay_tokens attribute
- Call n_right_pad_tokens() (now a method) for the num_right_pad_tokens property
- Online streaming: build the prefill from the low-level audio encoder primitives
(start() + encode_streaming_tokens(), get_padding_audio()) instead of passing
audio to a TranscriptionRequest, avoiding the deprecation FutureWarning
- Bump mistral-common pin to >=1.11.5
- Add processing tests covering offline, online streaming, chunked, batched and
audio-config-property paths, plus an online-streaming equivalence test
* add streaming integration test
* add model_input_names
* add require_soundfile
* use ProcessorTesterMixin
* update value for runners
* Update tests/models/voxtral_realtime/test_modeling_voxtral_realtime.py
Co-authored-by: Anton Vlasjuk <73884904+vasqu@users.noreply.github.com>
* get a proper error message
* add mistral common min version
---------
Co-authored-by: eustlb <94853470+eustlb@users.noreply.github.com>
Co-authored-by: Anton Vlasjuk <73884904+vasqu@users.noreply.github.com>