15,908,841 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by prafull agrawal (Top 25 by date)
prafull agrawal
22-Apr-16 13:32pm
View
Yes I came to know about this by going through the media documentation of android, but changing the whole code is a lot time consuming so I am looking for another option
prafull agrawal
22-Apr-16 11:25am
View
I gone through the media libraries of android but didn't found anything that is useful to me
prafull agrawal
22-Apr-16 10:03am
View
I checked the logic of the code but didn't saw any documentation for the system/library call, the reason behind this is the code I am using here in android works well in java environment without any exception or anything but as it seems that javax.sound.sampled package is not included in android which causing the root of the problem as I need to get all those files in this package manually into my project and use them. So summarizing the whole story is these files are part of javax.system.sound library and as java supports it so I font need to add these files into my code I just have to run my project code but that's not the case in android.
prafull agrawal
22-Apr-16 4:54am
View
You Said it right I too not getting any idea from code as it's not throwing any exception in catch block and I am trying to debug it line by line. And the thing about new in android yes I am little new but slowly grasping things and trying them out in my project that is why code looks far from basic level. Thanks for help. I will try debugging again with all catch blocks filled with proper code.
prafull agrawal
21-Apr-16 13:09pm
View
Dear Richard, I tried using this catch (Throwable e) {
e.printStackTrace();
System.out.println(e);
}
but honestly saying debugger executes the congigs = .. line and then directly moves to if (configs!= null)
sorry if I am doing something wrong I am little bit new in android please guide me in the the right direction.
prafull agrawal
21-Apr-16 3:54am
View
I tried printing (system.out.println(e)) the exception but the execution never goes into catch block
prafull agrawal
20-Apr-16 13:07pm
View
Sorry for that it's a typo I am passing the strFullName value and also tried printing the exception but the debugger never goes inside that catch block it directly going to if(configs!=null) and then while loop
I have updated my question with screenshot of what I am getting from getSystemResources line
prafull agrawal
20-Apr-16 6:37am
View
This is the same code as in my question so what did you altered in this?
prafull agrawal
20-Apr-16 6:17am
View
I came to this by debugging only and mentioned in the question that problem is in configs = Service.class.getClassLoader().getSystemResources("strFullName");
as while (configs.hasMoreElements()) returns false
prafull agrawal
12-Feb-16 11:18am
View
At the line where main thread refer to method in the above class
prafull agrawal
12-Feb-16 9:52am
View
@Richard Yes I copied the error from logcat itself
prafull agrawal
12-Feb-16 5:42am
View
@Richard firs of all thanks for the reply. I will give it a try but still I am confused that if it will give above said error then how would I get the desired jar package??
prafull agrawal
12-Feb-16 5:23am
View
@Richard What about that javax.sound.sampled reference in a class inside of jar, when building on android studio??
prafull agrawal
4-Jan-16 15:14pm
View
I managed to resolve above error i.e. E/AudioRecord: Could not get audio input for record source 1, sample rate 22050, format 0x1, channel mask 0x10, session 40, flags 0
E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
But the old one is back I mean the errors I mentioned in the question are back. No luck.
prafull agrawal
3-Jan-16 15:54pm
View
As the recordInstance is not initialized before it's the 1st time I am using it and it's giving me same error. So I think point 2 won't be the case. Thanks.
prafull agrawal
3-Jan-16 14:58pm
View
Thanks For answer I tried using step 1 but it gave me following errors and the the code didn't ran for once also so no issue with tying up the resources.
E/AudioRecord: Could not get audio input for record source 1, sample rate 22050, format 0x1, channel mask 0x10, session 40, flags 0
E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
prafull agrawal
2-Jan-16 8:05am
View
I have posted my full code only and the wav recorder code I used in my code,
I forgot to mention the reference link for wav recording code http://www.edumobile.org/android/audio-recording-in-wav-format-in-android-programming/
prafull agrawal
2-Jan-16 6:02am
View
Hi these errors are regarding AudioRecorder class of android itself, and I posted the entire code here for coders reference, if you don't know android then please don't look into it. Thnaks
prafull agrawal
1-Jan-16 12:44pm
View
If I did know, why would I asked here?
prafull agrawal
27-Jan-14 4:07am
View
problem is how to add uri of lexicon into xml grammar when lexicon is a embedded resource
prafull agrawal
27-Jan-14 2:48am
View
i think sir you are not getting it i will explain it again from start....
for custom pronunciations i crated lexicon file on my laptop at D:\123.pls
after that i created grammar file D:\mygrammar.xml
& for custom pronunciation to work i added lexicon uri D:\123.pls in grammar file...
now i added these both files in my c# project resources & set their properties as a embedded resources
& read the grammar file using srgsdocuments from resources & loaded my grammar for speech recognition
now the problem is as there is a diff approach to load grammar file from resources into my project so i want to know what should i edit the uri of lexicon from resources in the grammar
prafull agrawal
27-Jan-14 1:55am
View
sir i already added xml grammar file using srgsdocuments & i had read all the basic prerequisites i just want to know about uri of lexicon which i would add in my grammar xml so as to link both..as uri need to be located on computer so how it will be added in case of embedded resource lexicon file?
prafull agrawal
27-Jan-14 0:03am
View
thanx sir for your concern i done this i mean generated lexicon but now i want to know that how can i add this lexicon into my grammar xml file as i want to include lexicon & grammar both in my resources
prafull agrawal
24-Jan-14 2:40am
View
yes i had read all the answers & updates, & i am really very thankful for giving your precious time to this topic.. but can you please let me know about can i add the custom pronunciations through lexicon files..
prafull agrawal
23-Jan-14 12:47pm
View
yes i m using system.speech
is there any such feature in microsoft.speech
Show More