ivr-tester-transcriber-amazon-transcribe
Version:
Amazon Transcribe integration for IVR Tester
23 lines (22 loc) • 937 B
TypeScript
import { AVAILABLE_REGIONS, LANGUAGES } from "aws-transcribe/dist/types";
import { TranscriberFactory } from "ivr-tester";
/**
* Options used when starting a transcription stream to Google's Speech-to-Text service. See [Google's documentation
* for more detailed info](https://cloud.google.com/speech-to-text/docs/reference/rest/v1/RecognitionConfig)
*/
export interface AmazonTranscribeOptions {
/**
* AWS region of the Amazon Transcribe resource
*/
region: AVAILABLE_REGIONS;
/**
* Language of the supplied audio as a BCP-47 language tag.
*/
languageCode?: LANGUAGES;
}
/**
* Factory for creating an Amazon Transcribe transcriber plugin that is preconfigured for
* phone-calls - specifically 8-bit PCM mono uLaw with a sampling rate of 8Khz.
*/
export declare const amazonTranscribe: ({ region, languageCode, }: AmazonTranscribeOptions) => TranscriberFactory;
export default amazonTranscribe;