Skip to content

Commit

Permalink
Merge pull request #28 from fixie-ai/ben-setoutputmedium
Browse files Browse the repository at this point in the history
adding setOutputMedium to SDK page
  • Loading branch information
benlower authored Oct 11, 2024
2 parents 653c414 + a7fbb89 commit 7efa2b7
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docs/src/content/docs/sdk.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,18 @@ Leaves the current call. Returns a promise (with no return value) that resolves
```typescript
sendText(text: string): void
```
Sends a message to the model. Model replies via text transcript. Requires inputting the text message (string).
Sends a text message to the agent. Requires inputting the text message (string).

#### setOutputMedium()

```ts
setOutputMedium(medium: Medium): void
```
Sets the agent's output medium for future utterances. If the agent is currently speaking, this will take effect at the end of the agent's utterance. Also see [muteSpeaker](#mutespeaker) and [unmuteSpeaker](#unmutespeaker) below.

| parameter | description |
|-------------- | ------------------------------------------- |
| medium | How replies are communicated. Must be either `'text'` or `'voice'`.

#### isMicMuted()

Expand Down

0 comments on commit 7efa2b7

Please sign in to comment.