Compare Two Audio(locally stored pre-recorded voice command and recorded from microphone in app) in iOS : <p>In-app, I have to compare live recording from previously locally stored voice command if  it matches(not only text but also identified person's voice) then perform necessary action.</p>

<p><strong>1-match voice commands from the same person.</strong></p>

<p><strong>2-match command 's text.</strong></p>

<p>I applied many ways but none are working as per my expectation.</p>

<p><strong><em>First:</em></strong>
use Speech to text Library like <a href="http://www.politepix.com/openears/">OpenEars</a>,<a href="https://developer.nuance.com/public/index.php?task=relNotes">SpeechKit</a> but these libraries convert only text from speech.</p>

<p><strong>Result: Failed As My expectation</strong></p>

<p><strong><em>Second:(Audio Finger printing)</em></strong></p>

<p><strong><a href="https://www.acrcloud.com/">acrcloud Library</a> :</strong> in this library, I record a command and stored that mp3file  on acrcloud server and match with live recording(spoken by me) it doesn't match but when I play the same recording(recorded MP3 file of my voice ) which is uploaded to the acrcloud server then it matches.
<strong>Result: Failed As My expectation</strong></p>

<p><strong><a href="https://api.ai/">API.AI</a> :</strong> in this library,it is like speech to text ,I stored some text command on his server and then anyone speaks the same command the result get success.
<strong>Result: Failed As My expectation</strong></p>

<p>Please Suggest me how to solve this problem for iOS Application</p>
