tts-narrator
Version:
Generate narration with Text-To-Speech technology
15 lines • 899 B
TypeScript
import { SpeechSynthesisOutputFormat } from 'microsoft-cognitiveservices-speech-sdk';
import { VoiceSettings } from './narration-script';
import { AudioGenerationOptions, BaseTtsService } from './tts-service';
export interface AzureAudioGenerationOptions extends AudioGenerationOptions {
subscriptionKey?: string;
serviceRegion?: string;
outputFormat?: SpeechSynthesisOutputFormat;
}
export declare class AzureTtsService extends BaseTtsService {
protected options?: Omit<AzureAudioGenerationOptions, "outputFilePath"> | undefined;
constructor(options?: Omit<AzureAudioGenerationOptions, "outputFilePath"> | undefined);
protected buildSpeakStartTag(voiceSettings: VoiceSettings): string;
generateAudio(ssml: string, options: AzureAudioGenerationOptions | Pick<AzureAudioGenerationOptions, 'outputFilePath'>): Promise<any>;
}
//# sourceMappingURL=azure-tts-service.d.ts.map