守正
分类: 嵌入式
2010-07-06 09:44:03
共 7 个帖子 - - |
发件人:dmitriy325ci
日期:Tue, 2 Mar
2010 14:39:05 -0800 (PST)
当地时间:2010年3月3日
(星期三) 上午6时39分
主题:Android
AudioRecord errors
| |
|
| |
Hi Guys,
I am a newbie to android and was trying to get a simple recording application up and running. However I am facing errors and wondering if some of you can point me in the right direction. Stack Trace: Sample
Code: AudioFormat.ENCODING_PCM_16BIT, bufferSize); AndroidManifest.xml: System Info: Thanks in advance, 您需要先才能发帖。
要发帖子,您需要先。
请先在页上更新您的昵称,然后再进行发帖。
您没有发帖的权限。
|
发件人:Matias
Alberto de la Vega
日期:Wed, 3 Mar
2010 04:15:02 -0800 (PST)
当地时间:2010年3月3日
(星期三) 下午8时15分
主题:Re: Android
AudioRecord errors
| |
|
| |
Dimitry, if I'm not wrong, Android
currently only supports AMR_NB for
encoding+decoding, PCM is only supported for decoding so far. And the file encapsulating this type encoding should be 3GPP (audio/3gp is the MIME type which you may need). You can find more information about MediaRecorder in developer.android.com, take care! On 2 mar, 19:39, dmitriy325ci
您需要先才能发帖。
要发帖子,您需要先。
请先在页上更新您的昵称,然后再进行发帖。
您没有发帖的权限。
|
发件人:dmitriy325ci
日期:Wed, 3 Mar
2010 08:18:57 -0800 (PST)
当地时间:2010年3月4日
(星期四) 上午12时18分
主题:Re: Android
AudioRecord errors
| |
|
| |
Hmmm - I was under impression that
PCM was supported. I was looking
to use AudioRecord instead of MediaRecorder as I can then have direct access to the buffer. Is
this not a valid example/tutorial then? http://emeadev.blogspot.com/2009/09/raw-audio-manipulation-in-android...
Dmitriy 您需要先才能发帖。
要发帖子,您需要先。
请先在页上更新您的昵称,然后再进行发帖。
您没有发帖的权限。
|
发件人:dmitriy325ci
日期:Wed, 3 Mar
2010 12:25:37 -0800 (PST)
当地时间:2010年3月4日
(星期四) 上午4时25分
主题:Re: Android
AudioRecord errors
| |
|
| |
I figured out what the problem was.
I was trying to start recording
from 2 separate threads at the same time causing a conflict. Although I solved the issue, I am
facing very poor audio quality. I So
it seems as if emulator might be offering poor support for audio Dmitriy 您需要先才能发帖。
要发帖子,您需要先。
请先在页上更新您的昵称,然后再进行发帖。
您没有发帖的权限。
|
发件人:Matias
Alberto de la Vega
日期:Wed, 3 Mar
2010 12:46:06 -0800 (PST)
当地时间:2010年3月4日
(星期四) 上午4时46分
主题:Re: Android
AudioRecord errors
| |
|
| |
Dimitry, I've used MediaRecorder in
a Nexus One and the quality is not
that great either. Maybe there's something we can do to improve quality, but I had no time to research on that. I will let you know if I make progress getting better audio quality. Take care On 3 mar, 17:25, dmitriy325ci
您需要先才能发帖。
要发帖子,您需要先。
请先在页上更新您的昵称,然后再进行发帖。
您没有发帖的权限。
|
发件人:dmitriy325ci
日期:Wed, 3 Mar
2010 19:48:09 -0800 (PST)
当地时间:2010年3月4日
(星期四) 上午11时48分
主题:Re: Android
AudioRecord errors
| |
|
| |
Wow, really? One of the features
of nexus one is voice search. So
there is got to be a way to record audio on the device with acceptable quality. Unfortunately there is not much information available out there. So keep me posted if you make any progress. Thanks, On
Mar 3, 3:46 pm, Matias Alberto de la Vega 您需要先才能发帖。
要发帖子,您需要先。
请先在页上更新您的昵称,然后再进行发帖。
您没有发帖的权限。
|
发件人:Matias
Alberto de la Vega
日期:Wed, 3 Mar
2010 20:08:39 -0800 (PST)
当地时间:2010年3月4日
(星期四) 下午12时08分
主题:Re: Android
AudioRecord errors
| |
|
| |
Voice search is great! how Google
makes the magic happen remains a
mistery to me...so far at least. Take care! On Mar 4, 12:48 am, dmitriy325ci 您需要先才能发帖。
要发帖子,您需要先。
请先在页上更新您的昵称,然后再进行发帖。
您没有发帖的权限。
|