You can install Retell Player through NPM

npm install --save @retell/player-js
yarn add @retell/player-js

Or, you can use CDN

<script src="<>"></script>

Initialize the Retell player

To initialize Retell Player, use the following:

<script data-voiced="player">
	Retell.init({ url: "..." })

if you install player through NPM you should import the package

import { Retell } from '@retell/player-js'

Player parameters

Player Callbacks

You can run custom functions by registering Player callbacks:

Retell.registerCallback(eventName, callback, options)