🖥️
carter-js v1
  • carter-js
  • 💬Conversation
    • Say
    • Interactions
    • Downvoting
    • Audio Links
    • History
  • 🎱Skills
    • Basics
  • Other Features
    • Response Times
  • More
    • Changelog
Powered by GitBook
On this page
  1. Conversation

Audio Links

Your Carter agent can speak whatever you need it to.

PreviousDownvotingNextHistory

Last updated 2 years ago

CarterAPI contains an endpoint documented 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.

  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.

💬
here