# Audio Links

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.
