टॉकिंग टॉम जैसे वॉयस पहचानने वाले ऐप को कैसे विकसित किया जाए?
1. मेरा अनुरोध है कि बटन, टच इवेंट्स जैसी किसी भी घटना के बिना आवाज को कैसे पहचानें)
2. सभी वॉयस रिकॉर्डिंग नमूना बटन के माध्यम से होते हैं, लेकिन मेरी आवश्यकता उस समय ध्वनि की पहचान कर रही है जब उपयोगकर्ता उस समय रिकॉर्डिंग आवाज और जब उपयोगकर्ता आवाज बंद हो यह स्वचालित रूप से टॉम जैसे कुछ अन्य आवाज में आवाज को संशोधित करने या
3. तोता मैं प्ले बटन के लिए बटनटॉकिंग टॉम जैसे वॉयस पहचानने वाले ऐप को कैसे विकसित करें
मेरे जावा
File storageDir = new File(Environment.getExternalStorageDirectory(), "SRAVANTHI");
storageDir.mkdir();
Log.d(APP_TAG, "Storage directory set to " + storageDir);
outfile = File.createTempFile("hascode", ".3gp", storageDir);
// init recorder
recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
recorder.setOutputFile(outfile.getAbsolutePath());
// init player
player.setDataSource(outfile.getAbsolutePath());
try {
recorder.prepare();
recorder.start();
recording = true;
} catch (IllegalStateException e) {
Log.w(APP_TAG, "Invalid recorder state .. reset/release should have been called");
} catch (IOException e) {
Log.w(APP_TAG, "Could not write to sd card");
}
recorder.stop();
के माध्यम से किया है
try {
playing = true;
player.prepare();
player.start();
} catch (IllegalStateException e) {
Log.w(APP_TAG, "illegal state .. player should be reset");
} catch (IOException e) {
Log.w(APP_TAG, "Could not write to sd card");
}