Class: SpeechProviderAdapter
Defined in: packages/agentos/src/cognition/rag/multimodal/SpeechProviderAdapter.ts:77
Bridges the voice-pipeline's SpeechToTextProvider to the multimodal
indexer's ISpeechToTextProvider interface.
Converts raw Buffer audio into the SpeechAudioInput shape expected
by voice providers, forwards the language hint through
SpeechTranscriptionOptions, and extracts the plain transcript text
from the rich SpeechTranscriptionResult.
Example
const whisper = resolver.resolveSTT();
const adapted = new SpeechProviderAdapter(whisper);
// Now usable by the multimodal indexer:
const text = await adapted.transcribe(audioBuffer, 'en');