import { SpeechRecognitionProviderBase } from './base.js';
import { TencentSpeechProvider } from './tencent.js';
const providers = [
    new TencentSpeechProvider(),
];
function getProvider(provider) {
    const p = providers.find(p => p.provider === provider);
    if (!p)
        throw new Error(`Unknown speech recognition provider: ${provider}`);
    return p;
}
export async function createSpeechSession(config) {
    return getProvider(config.provider).createSession(config);
}
export { SpeechRecognitionProviderBase };
//# sourceMappingURL=index.js.map