Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions examples/src/telephony_amd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,14 @@ export default defineAgent({

if (
result.category === voice.AMDCategory.HUMAN ||
result.category === voice.AMDCategory.UNCERTAIN ||
result.category === voice.AMDCategory.MACHINE_IVR
result.category === voice.AMDCategory.UNCERTAIN
) {
logger.info(
{ amd: result },
'human or ivr menu detected, proceeding with normal conversation',
'human answered the call or amd is uncertain, proceeding with normal conversation',
);
} else if (result.category === voice.AMDCategory.MACHINE_IVR) {
logger.info({ amd: result }, 'ivr menu detected, starting navigation');
} else if (result.category === voice.AMDCategory.MACHINE_VM) {
logger.info({ amd: result }, 'voicemail detected, leaving a message');
const speechHandle = session.generateReply({
Expand Down
Loading