UNPKG

n8n-nodes-salutespeech

Version:

User-friendly SaluteSpeech (Sber) community node

32 lines (31 loc) 1.23 kB
import { AxiosInstance } from 'axios'; import { Settings } from './Settings'; import { AccessToken } from './interfaces'; export interface SaluteSpeechClientConfig { authKey?: string; scope?: string; baseUrl?: string; authUrl?: string; accessToken?: string; httpsAgent?: any; } declare class SaluteSpeechApiClientInstance { _client: AxiosInstance; _authClient: AxiosInstance; _settings: Settings; protected _accessToken?: AccessToken; constructor(config: SaluteSpeechClientConfig); updateConfig(config: SaluteSpeechClientConfig): Promise<void>; protected get token(): string | undefined; protected get useAuth(): boolean; protected checkValidityToken(): boolean; protected resetToken(): void; private _getAxiosConfig; private _getAuthAxiosConfig; updateToken(): Promise<void>; private _decorator; speechRecognize(file: File, lang: 'ru-RU' | 'en-US', profanity: boolean, model: 'general' | 'callcenter' | 'media' | 'ivr', channelsCount: number): Promise<string[]>; textSynthesize(text: string, voiceId: string, format: string, freq: string): Promise<any>; } export declare const SaluteSpeechApiClient: SaluteSpeechApiClientInstance; export {};