langchain_community.document_loaders.parsers.audio
.YandexSTTParserΒΆ
- class langchain_community.document_loaders.parsers.audio.YandexSTTParser(*, api_key: Optional[str] = None, iam_token: Optional[str] = None, model: str = 'general', language: str = 'auto')[source]ΒΆ
Transcribe and parse audio files. Audio transcription is with OpenAI Whisper model.
Initialize the parser.
- Parameters
api_key (Optional[str]) β API key for a service account
role. (with the ai.speechkit-stt.user) β
iam_token (Optional[str]) β IAM token for a service account
role. β
model (str) β Recognition model name. Defaults to general.
language (str) β The language in ISO 639-1 format. Defaults to automatic language recognition.
Either api_key or iam_token must be provided, but not both.
Methods
__init__
(*[, api_key, iam_token, model, ...])Initialize the parser.
lazy_parse
(blob)Lazily parse the blob.
parse
(blob)Eagerly parse the blob into a document or documents.
- __init__(*, api_key: Optional[str] = None, iam_token: Optional[str] = None, model: str = 'general', language: str = 'auto')[source]ΒΆ
Initialize the parser.
- Parameters
api_key (Optional[str]) β API key for a service account
role. (with the ai.speechkit-stt.user) β
iam_token (Optional[str]) β IAM token for a service account
role. β
model (str) β Recognition model name. Defaults to general.
language (str) β The language in ISO 639-1 format. Defaults to automatic language recognition.
Either api_key or iam_token must be provided, but not both.