AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

Speech recognition problem
 
 

Hi,
Just seeking some help for a fun project over the holidays.
I’m trying to implement voice recognition for Program-AB using Sphinx 4 and Java but I can’t seem to get it to use the recognised text. Tried storing the string in a text file and reading that in instead of user input but I keep getting null pointer exceptions and I have no idea why.

Getting them at at
org.alicebot.ab.Chat.multisentenceRespond(Chat.java:162)
which is : String norm = bot.preProcessor.normalize(request);

at main.testChat(main.java:156)
String response = chatSession.multisentenceRespond(request);
goes to the one as same above

at main.main(main.java:93)
testChat(null, listening);
where the recognised string goes to the bot. listening is boolean for when keyword is spoken

Any help is appreciated. Should I post my code? It’s mainly Hendy’s fork found at
https://github.com/lumenrobot/program-ab

 

 
  [ # 1 ]

Never mind got it working! :D

 

 
  login or register to react