Interaction & Communication
Defines how users engage with the agent through text or voice.
enableVoiceChat
Lets users engage in real-time voice conversations with the agent instead of typing messages.
Type: boolean
Default Value: false
enableSpeechToText
Activates the microphone feature in the chat interface. When users click the mic icon, their speech is recorded and automatically transcribed into a text prompt message.
Type: boolean
Default Value: false
Example
foldspace.agent('API-KEY').setConfiguration({
  enableVoiceChat: true,
  enableSpeechToText: true,
});Updated 1 day ago