import {
AudioDeviceConfig,
ConversationConfig,
ChatGPTAgentConfig,
DeepgramTranscriberConfig,
AzureSynthesizerConfig,
VocodeConfig,
} from "vocode";
const transcriberConfig: Omit<
DeepgramTranscriberConfig,
"samplingRate" | "audioEncoding"
> = {
type: "transcriber_deepgram",
chunkSize: 2048,
};
const agentConfig: ChatGPTAgentConfig = {
type: "agent_chat_gpt",
initialMessage: {
type: "message_base",
text: "Hello!",
},
promptPreamble: "The AI is having a pleasant conversation about life",
};
const synthesizerConfig: Omit<
AzureSynthesizerConfig,
"samplingRate" | "audioEncoding"
> = {
type: "synthesizer_azure",
shouldEncodeAsWav: true,
};
const vocodeConfig: VocodeConfig = {
apiKey: process.env.REACT_APP_VOCODE_API_KEY || "",
};
const audioDeviceConfig: AudioDeviceConfig = {};