Personalise

Make anything sound like your character said it!

carter-js provides an personalise function which makes use of Carter's personalise 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', "user-id-here", speak=True) 
// speak optional
// userId optional

if (response.ok) {
    console.log(response.outputText)
}

The response object is identical to a regular CarterInteraction.

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

Last updated