sofya.transcription
Version:
a JavaScript library that provides a robust and flexible solution for real-time audio transcription. It is designed to transcribe audio streams and can be easily integrated into web applications.
22 lines • 981 B
TypeScript
import { ITranscriptionService } from "./interfaces/ITranscriptionService";
import { Providers } from "../../SofyaTranscriber";
export declare class TranscriptionServiceFactory {
static create(provider: Providers, config: any): Promise<ITranscriptionService>;
/**
* Builds the WebSocket URL with validated query parameters
* @param endpoint - Base WebSocket endpoint
* @param language - Transcription language
* @param translationLang - Translation language (optional)
* @param websocketOptions - Custom WebSocket options (optional)
* @returns Final validated URL
*/
private static buildWebSocketUrl;
/**
* Connects to a WebSocket endpoint with optional protocols
* @param endpoint - WebSocket URL
* @param protocols - Optional WebSocket protocols
* @returns Promise that resolves to connected WebSocket
*/
private static connectToWebSocket;
}
//# sourceMappingURL=TranscriptionServiceFactory.d.ts.map