Welcome to Voice Agents SDK documentation page!
HamsaVoiceAgent
class, which extends the EventEmitter
class from Node.js. This design allows the SDK to easily handle and emit events, enabling developers to respond to various states of the voice interaction process.
"Hello {{name}}, how can I help you today?"
and pass the "name"
as a parameter to use the correct name of the user.
"pause"
function. This will prevent the SDK from sending or receiving new data until you resume the conversation:
"end"
function:
HamsaVoiceAgent
with the API key.callStarted
, callEnded
, callPaused
, and callResumed
to manage the call lifecycle.start()
method to begin the interaction.pause()
, resume()
, and end()
methods as needed to control the flow of the conversation.HamsaVoiceAgent
class, developers can create engaging voice-enabled experiences with ease.