# Interaction and communication

Enable voice conversations and speech-to-text input so users can talk to your agent instead of typing.

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

## enableVoiceChat

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

Type: `boolean`\
Default value: `false`

## 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

```javascript
foldspace.agent('YOUR-AGENT-KEY').setConfiguration({
  enableVoiceChat: true,
  enableSpeechToText: true,
});
```
