Skip to content

Interaction and communication

Open in ChatGPT Open in Claude

These settings control how users communicate with the agent: by typing, by speaking, or both. Pass these flags to setConfiguration.

Lets users hold a real-time voice conversation with the agent instead of typing.

Type: boolean
Default value: false

Adds a microphone button to the chat interface. When a user clicks the mic, their speech is recorded and transcribed into a text prompt.

Type: boolean
Default value: false

foldspace.agent('API-KEY').setConfiguration({
enableVoiceChat: true,
enableSpeechToText: true,
});