SprecTalk - Movies

SprecTalk - Movies

Refer the IVR speech recognition script given below for recognising the movie name spoken from a voice channel.

Download the evaluation version of Xtend IVR and install the telephony application in your system. Run the sample script from the Script Editor. Click here to refer the code.

The automated attendant will work as given below:

  • IVR waits for the call
  • Greets the user and asks for the movie number
  • User will either enter the number or speaks the movie name
  • IVR verifes the entered number/spoken voice
  • Thanks the caller and exits
Download the source file zip download for the Speech Recognition - sprectalk - Movies


srKeepGrammar(true)

MAIN:
	$Retry = 0
	display "Waiting for call"
	
	
	answer 1
	
	
	Speak "Welcome to movie shop."
	
	while $Retry < 3
		Speak "Please say the name of a movie."
		
		srGrammar("MOVIES")
		
		
		$Key = input(1, 5)
		
		
		if $InputMode == "S"
			Display $Key
			$Retry = 0
		endif
		
		$Retry += 1
	endwhile
	
	
	Speak "Thank you for calling."
	hangup
	goto MAIN


ONHANGUP:
	hangup
	goto MAIN


ONSYSTEMERROR:
	log $error
	display $error
	hangup
	goto MAIN