🖥️
carter-js V2
  • carter-js
  • 💬Conversation
    • Say
    • Interactions
    • Opener
    • History
  • 🎱Skills
    • Basics
  • Other Features
    • Response Times
    • Personalise
  • More
    • Changelog
    • Further Reading
    • carter-py
Powered by GitBook
On this page
  1. Other Features

Personalise

Make anything sound like your character said it!

PreviousResponse TimesNextChangelog

Last updated 2 years ago

carter-js provides an personalise function which makes use of Carter's endpoint. It allows you to personalise any text in the style of your character.

// Assuming you have created a Carter object called carter

const response = await carter.personalise('Your text goes here', speak=True) // speak optional
if (response.ok) {
    console.log(response.data.content)
}

The response object is identical to a regular CarterInteraction, except it doesn't include forced behaviours.

speak behaves in the same way as in say() and personalise()

personalise