convai-web-sdk
Version:
Integrate lifelike digital beings into your web applications with real-time conversations, actions, and facial expressions. Supports a variety of voices, languages, and emotions.
28 lines (27 loc) • 1.06 kB
TypeScript
type ListSpeakersResponse = {
STATUS?: string;
speakers?: Array<{
speaker_id: string;
name: string;
device_id?: string;
}>;
};
export declare function createOrGetSpeaker(apiKey: string, name: string, deviceId?: string, apiBaseUrl?: string): Promise<{
speakerId: string;
name: string;
deviceId?: string;
created: boolean;
} | null>;
export declare function listSpeakers(apiKey: string, apiBaseUrl?: string): Promise<ListSpeakersResponse | null>;
export declare function deleteSpeaker(apiKey: string, speakerId: string, apiBaseUrl?: string): Promise<boolean>;
export declare function updateSpeaker(apiKey: string, speakerId: string, newName: string, deviceId?: string, apiBaseUrl?: string): Promise<{
speakerId: string;
name: string;
deviceId?: string;
} | null>;
export declare function parseSpeakerMetadata(name: string): {
name: string;
metadata: Record<string, string>;
};
export declare function buildSpeakerName(name: string, metadata: Record<string, string>): string;
export {};