@novo-learning/novo-sdk
Version:
SDK for the Novolanguage Speech Analysis API
10 lines (9 loc) • 784 B
TypeScript
import { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
import { Configuration, MetadataDtoV1, MetadataRequestDtoV1, PronunciationMetadataRequestDtoV1 } from './generated';
export declare class MetadataApi {
private readonly api;
private readonly languageCodeMapper;
constructor(configuration?: Configuration | undefined, basePath?: string, axios?: AxiosInstance);
getMetadataV1({ phrase, targetLanguage, secret, userData }: MetadataRequestDtoV1, options?: AxiosRequestConfig<unknown> | undefined): Promise<AxiosResponse<Array<MetadataDtoV1>>>;
getPronunciationMetadataV1({ words, language, secret, userData }: PronunciationMetadataRequestDtoV1, options?: AxiosRequestConfig<unknown> | undefined): Promise<AxiosResponse<Array<MetadataDtoV1>>>;
}