> For the complete documentation index, see [llms.txt](https://lazylyrics.gitbook.io/carter-js/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lazylyrics.gitbook.io/carter-js/conversation/audio-links.md).

# Audio Links

Your Carter agent can speak whatever you need it to.

CarterAPI contains an endpoint documented [here](https://carterapi.gitbook.io/carter-docs/api/voice-api) which allows you to obtain a voice recording of your agent. Carter provides this link prefilled in its response data for whatever CarterAPI's reply was. If you need to, you can call `getAudioLink()` on your Carter object and create one of these links easily.

```javascript
  import { Carter } from 'carter-js'

  const carter = new Carter(YOUR_API_KEY)

  // Get audio link
  const audioLink = carter.getAudioLink("Hello there, this your Carter agent speaking.")
```

`getAudioLink()` returns a url string which can be used as a source when playing audio with JavaScript.
