Home > Mobile >  Xunfei speech recognition is how to keep continuous identification?
Xunfei speech recognition is how to keep continuous identification?

Time:02-26

As title, I enclosed the xunfei speech recognition and speech, and then want to open a similar robot voice answers in the inside of the MainActivity process, an identification process to make a speech after the reply, and then wait for next time listening, but because of the two processes are independent of each other so might reply robot began to listen, and then put the robot voice records, how do I can just speak in a open after listening next time?
My original idea was that at the end of the speaking class set an interface to the speech class parameters, and then started listening MainActicity interface receive parameters, do not know to have a great god has a better solution

CodePudding user response:

You had thought of the two processes, why not consider two threads, consider locking, two actions cannot simultaneously and must process solution is lock, jam, or you use other ways, no traffic, program order operation, easily cleared, in the process, even if you use the lock, also may be the same thread to lock the two consecutive, but this is not something high concurrency because of you, basically there is no continuous rob the behavior of the lock, the hand of the comparative speed can't be in a recording after the opening inside the next

CodePudding user response:

Can be monitored phone micro state
  • Related