You Are Here:

Community: Developer Discussion Boards

#1 Old Speech recognition (speech capture) - 2008-09-23, 20:11

Join Date: Sep 2008
Posts: 9
amauri
Offline
Registered User
Hi everybody, Anybody already saw the signal after the voice caught with the MMAPI (JSR 135)? I have developed something similar to the desktop using JavaSound, and worked perfect. Now I am trying to do the same thing in a phone but the signal, at the moment of silence, is "crazy", with values very high (of the same magnitude of the voice signal).

The greatest difficulty is to identify what's silence. By now, I'm just testing in the Sun Toolkit and plotting the signal in Octave. Below follows the codes (part of them) for the capture of speech. Someone know what is the problem? Thanks...

Code:
p = Manager.createPlayer("capture://audio?bits=8&rate=8000");
p.realize();
rc = (RecordControl)p.getControl("RecordControl");
output = new ByteArrayOutputStream();
rc.setRecordStream(output);
rc.startRecord();
p.start();
Code:
//This occurs when the user stop to speak
rc.stopRecord();
rc.commit();
p.stop();
init.append("Gravando...\n");
recordedSoundArray = output.toByteArray();
output.close();
int n = recordedSoundArray.length;
int[] audioData = new int[n];
for (int i = 0; i < n; i++) {
      audioData[i] = recordedSoundArray[i];
      System.out.println(audioData[i]);
}
Reply With Quote

#2 Old Re: Speech recognition (speech capture) - 2008-09-24, 00:02

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
Are you saying that the sound recording on Sun WTK causes problems (hmmm... there could be some problems in Sun WTK or with your set-up)?

What if you test on a real phone? Does the "silence" still contain too much noise?

Hartti
Reply With Quote

#3 Old Re: Speech recognition (speech capture) - 2008-09-24, 22:07

Join Date: Sep 2008
Posts: 9
amauri
Offline
Registered User
Hi, When I play the captured audio it's right, but when i look for the signal (audioData in the below code), it seems noisy. Tomorrow I will go to test in Nokia S60 Emulator. Thanks
Reply With Quote

#4 Old Re: Speech recognition (speech capture) - 2008-09-25, 21:33

Join Date: Sep 2008
Posts: 9
amauri
Offline
Registered User
Hi,

I tested in Nokia S60 Emulator, with amr encoding and too don't worked (The same problem).

Regards.
Reply With Quote

#5 Old Re: Speech recognition (speech capture) - 2008-09-25, 21:58

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
Ok,

Sorry for the stupid question, but are you familiar on the amr ecoding file format? So are you looking the data in a correct way?
(and no, I am not an expert on amr file format so google would be more effective than me in getting into details :-)

Hartti
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
speech recognition in s60 3rd edition fatema27 General Symbian C++ 10 2008-08-14 07:06
Speech Recognition Target Survey fmang General Symbian C++ 0 2007-04-04 09:53
Speech Recognition Utility CreateLexicon mgaeckler General Symbian C++ 0 2006-12-21 11:28
Speech Recognition In S60 bhagwatr Symbian Media (Graphics & Sounds) 5 2006-01-30 07:26
Speech Recognition s60!!! yudista Symbian Tools & SDKs 0 2005-03-25 07:29

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d134434X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ