Interaction and communication
These settings control how users communicate with the agent: by typing, by speaking, or both. Pass these flags to setConfiguration.
enableVoiceChat
Section titled “enableVoiceChat”Lets users hold a real-time voice conversation with the agent instead of typing.
Type: boolean
Default value: false
enableSpeechToText
Section titled “enableSpeechToText”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
Example
Section titled “Example”foldspace.agent('API-KEY').setConfiguration({ enableVoiceChat: true, enableSpeechToText: true,});