sber-salute-speech-recognition
Version:
A library that produces audio transcriptions using the SBER Salute Speech service.
47 lines (46 loc) • 1.03 kB
TypeScript
export declare type SberSaluteToken = {
access_token: string;
expires_at: number;
};
export declare type FileUploadResponse = {
result: {
request_file_id: string;
};
};
export declare type RecognitionResponse = {
result: {
id: string;
created_at: string;
updated_at: string;
status: string;
};
};
export declare type RecognitionStatusResponse = {
result: {
id: string;
created_at: string;
updated_at: string;
status: string;
response_file_id: string;
};
};
export declare type RecognitionResultResponse = [
{
results: [
{
text: string;
normalized_text: string;
}
];
}
];
export declare type SpeechToTextResult = {
text: string;
normalizedText: string;
};
export declare type ChannelsCount = 1 | 2;
export declare type SberRecognizeHints = {
words: Array<string>;
enable_letters?: boolean;
eou_timeout?: string;
};