USB microphone broken for Android Pie (20191121)

Post Reply
ponots03
Posts: 21
Joined: Thu Jul 18, 2019 11:26 pm
languages_spoken: english
ODROIDs: odroid-n2
Has thanked: 8 times
Been thanked: 2 times
Contact:

USB microphone broken for Android Pie (20191121)

Post by ponots03 »

Hello,

This build version (https://wiki.odroid.com/odroid-n2/os_im ... e_20191121) seems to have broken USB microphone compatibility. Can you please check ?

The 1028 build (https://wiki.odroid.com/odroid-n2/os_im ... e_20191028) was fine wrt USB microphone support.

thanks

User avatar
codewalker
Posts: 1110
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 44 times
Been thanked: 78 times
Contact:

Re: USB microphone broken for Android Pie (20191121)

Post by codewalker »

Hi, ponots03.
We have tried to record a video with a USB Camera and a USB microphone, but it worked well.

https://www.google.com/search?q=odroid+ ... skUwUOoDvM:
https://mlstaticquic-a.akamaihd.net/usb ... 2019-F.jpg

Could you explain in more detail?

ponots03
Posts: 21
Joined: Thu Jul 18, 2019 11:26 pm
languages_spoken: english
ODROIDs: odroid-n2
Has thanked: 8 times
Been thanked: 2 times
Contact:

Re: USB microphone broken for Android Pie (20191121)

Post by ponots03 »

thanks codewalker for your reply. Here's more details of what we tried. I have also attached the recordings for both these OSes.
OS : https://wiki.odroid.com/odroid-n2/os_im ... e_20191121
USB device 1: Jabra 710 speakerphone : Noise only. No sign of audio data.
USB device 2: Logitech webcam C920 : audio is garbled. Can't understand anythings. Lots of clicks.

OS : https://wiki.odroid.com/odroid-n2/os_im ... e_20191028
USB device 1: Jabra 710 speakerphone : Good.
USB device 2: Logitech webcam C920 : Good.

Do let me know if you need anything else.
Attachments
USB_mic_recordings.zip
(364.11 KiB) Downloaded 40 times

User avatar
codewalker
Posts: 1110
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 44 times
Been thanked: 78 times
Contact:

Re: USB microphone broken for Android Pie (20191121)

Post by codewalker »

I think it is a matter of apps.
when I tried this app https://apkpure.com/kr/audio-recorder/c ... om=details, it was recorded in latest version.
But when I tried this app https://play.google.com/store/apps/deta ... iorecorder or https://play.google.com/store/apps/deta ... b.recorder, it was not recorded in latest version.

Please tell us which apps you used.
Or please try this app https://apkpure.com/kr/audio-recorder/c ... om=details or https://play.google.com/store/apps/deta ... b.recorder

wireshark
Posts: 25
Joined: Wed Jan 09, 2019 10:59 am
languages_spoken: Korean
ODROIDs: xu4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: USB microphone broken for Android Pie (20191121)

Post by wireshark »

Me too
So I downgraded.
Let me know if you solve

User avatar
tobetter
Posts: 6642
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 331 times
Been thanked: 927 times
Contact:

Re: USB microphone broken for Android Pie (20191121)

Post by tobetter »

wireshark wrote:
Wed Nov 27, 2019 5:58 am
Me too
So I downgraded.
Let me know if you solve
Which app do you use for the recording?

ponots03
Posts: 21
Joined: Thu Jul 18, 2019 11:26 pm
languages_spoken: english
ODROIDs: odroid-n2
Has thanked: 8 times
Been thanked: 2 times
Contact:

Re: USB microphone broken for Android Pie (20191121)

Post by ponots03 »

Hi, I used this app. https://play.google.com/store/apps/deta ... r&hl=en_US

I am not able to install this app. https://play.google.com/store/apps/deta ... b.recorder
:adb install recorder_hamb.apk
Performing Streamed Install
adb: failed to install recorder_hamb.apk: Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]


I was able to record using https://apkpure.com/kr/audio-recorder/c ... om=details which is good!

Do you know what the root cause of the variation is ? We may have to modify our own recording code accordingly.
codewalker wrote:
Tue Nov 26, 2019 12:13 pm
I think it is a matter of apps.
when I tried this app https://apkpure.com/kr/audio-recorder/c ... om=details, it was recorded in latest version.
But when I tried this app https://play.google.com/store/apps/deta ... iorecorder or https://play.google.com/store/apps/deta ... b.recorder, it was not recorded in latest version.

Please tell us which apps you used.
Or please try this app https://apkpure.com/kr/audio-recorder/c ... om=details or https://play.google.com/store/apps/deta ... b.recorder

wireshark
Posts: 25
Joined: Wed Jan 09, 2019 10:59 am
languages_spoken: Korean
ODROIDs: xu4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: USB microphone broken for Android Pie (20191121)

Post by wireshark »

tobetter wrote:
Wed Nov 27, 2019 4:32 pm
wireshark wrote:
Wed Nov 27, 2019 5:58 am
Me too
So I downgraded.
Let me know if you solve
Which app do you use for the recording?
I do not use the recording app.
When I use the microphone, it's time to call Google Assistant. (OK Google!)
There is no problem with downgrading now.

User avatar
tobetter
Posts: 6642
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 331 times
Been thanked: 927 times
Contact:

Re: USB microphone broken for Android Pie (20191121)

Post by tobetter »

wireshark wrote:
Fri Nov 29, 2019 12:32 pm
tobetter wrote:
Wed Nov 27, 2019 4:32 pm
wireshark wrote:
Wed Nov 27, 2019 5:58 am
Me too
So I downgraded.
Let me know if you solve
Which app do you use for the recording?
I do not use the recording app.
When I use the microphone, it's time to call Google Assistant. (OK Google!)
There is no problem with downgrading now.
Then...which microphone do you use?

wireshark
Posts: 25
Joined: Wed Jan 09, 2019 10:59 am
languages_spoken: Korean
ODROIDs: xu4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: USB microphone broken for Android Pie (20191121)

Post by wireshark »

tobetter wrote:
Fri Nov 29, 2019 2:23 pm
wireshark wrote:
Fri Nov 29, 2019 12:32 pm
tobetter wrote:
Wed Nov 27, 2019 4:32 pm
wireshark wrote:
Wed Nov 27, 2019 5:58 am
Me too
So I downgraded.
Let me know if you solve
Which app do you use for the recording?
I do not use the recording app.
When I use the microphone, it's time to call Google Assistant. (OK Google!)
There is no problem with downgrading now.
Then...which microphone do you use?
cm-001 (https://smartstore.naver.com/gyun0909/p ... 4058604001)
HS-USB-Microphone (https://smartstore.naver.com/ic11401/pr ... 4284898866)

ponots03
Posts: 21
Joined: Thu Jul 18, 2019 11:26 pm
languages_spoken: english
ODROIDs: odroid-n2
Has thanked: 8 times
Been thanked: 2 times
Contact:

Re: USB microphone broken for Android Pie (20191121)

Post by ponots03 »

Hi, we are experiencing issues for our own recording app also with the 1121 release. We need to understand what we need to modify in our app. Can you provide some information regarding what changed from the 1028 to 1121 release ? Was it something in the Amlogic BSP update that is causing this issue ? if so, can you share the detailed change list for the Amlogic BSP update ? We are curious regarding what changed that our USB recording is not longer working correctly (similar to what we see for at least a couple of other apps).
codewalker wrote:
Tue Nov 26, 2019 12:13 pm
I think it is a matter of apps.
when I tried this app https://apkpure.com/kr/audio-recorder/c ... om=details, it was recorded in latest version.
But when I tried this app https://play.google.com/store/apps/deta ... iorecorder or https://play.google.com/store/apps/deta ... b.recorder, it was not recorded in latest version.

Please tell us which apps you used.
Or please try this app https://apkpure.com/kr/audio-recorder/c ... om=details or https://play.google.com/store/apps/deta ... b.recorder

User avatar
codewalker
Posts: 1110
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 44 times
Been thanked: 78 times
Contact:

Re: USB microphone broken for Android Pie (20191121)

Post by codewalker »

We've fixed the issue and uploaded new version.
https://wiki.odroid.com/odroid-n2/os_im ... id/android
These users thanked the author codewalker for the post:
ponots03 (Sat Dec 14, 2019 2:31 am)

ponots03
Posts: 21
Joined: Thu Jul 18, 2019 11:26 pm
languages_spoken: english
ODROIDs: odroid-n2
Has thanked: 8 times
Been thanked: 2 times
Contact:

Re: USB microphone broken for Android Pie (20191121)

Post by ponots03 »

Thank you so much for the fix!

Am confirming that the microphone now works.
Also, all the other apps also now work!

codewalker wrote:
Fri Dec 13, 2019 5:11 pm
We've fixed the issue and uploaded new version.
https://wiki.odroid.com/odroid-n2/os_im ... id/android
These users thanked the author ponots03 for the post:
odroid (Sat Dec 14, 2019 11:55 am)

benwillcox
Posts: 288
Joined: Wed Oct 05, 2016 6:34 pm
languages_spoken: english
ODROIDs: C1+,C2, N2, N2+
Location: United Kingdom
Has thanked: 35 times
Been thanked: 20 times
Contact:

Re: USB microphone broken for Android Pie (20191121)

Post by benwillcox »

Hi, I know this is an old thread but it would appear that USB microphone support is broken again in the latest build. I installed https://wiki.odroid.com/odroid-n2/os_im ... e_20191028 as referenced earlier in the thread to confirm, and it works fine on that version, but not pie_64_20200827.

User avatar
codewalker
Posts: 1110
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 44 times
Been thanked: 78 times
Contact:

Re: USB microphone broken for Android Pie (20191121)

Post by codewalker »

I've tried to recorde with 20200903 version, but it worked well!!
https://wiki.odroid.com/odroid-n2/os_im ... 4_20200903

benwillcox
Posts: 288
Joined: Wed Oct 05, 2016 6:34 pm
languages_spoken: english
ODROIDs: C1+,C2, N2, N2+
Location: United Kingdom
Has thanked: 35 times
Been thanked: 20 times
Contact:

Re: USB microphone broken for Android Pie (20191121)

Post by benwillcox »

Thanks @codewalker I just updated to the latest version, and it seems to vary by App. For example, if I use this: https://play.google.com/store/apps/deta ... iorecorder it works ok.
But if I use this one: https://play.google.com/store/apps/deta ... cerecorder it just records a short snippet, which plays back in 'slow motion'.
When trying to use the Google Assistant it fails to recognise any speech.

Could you possibly please try with those apps and see if you have the same problem?

Thanks,
Ben

User avatar
codewalker
Posts: 1110
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 44 times
Been thanked: 78 times
Contact:

Re: USB microphone broken for Android Pie (20191121)

Post by codewalker »

I've installed "Easy Voice Recorder", "Voice Recorder" and "Voice Recorder - Record Unlimited Audio" and it worked without any problem.
What kind of USB microphone do you use?
Screenshot_20200914-173352.png
Screenshot_20200914-173352.png (196.88 KiB) Viewed 912 times
benwillcox wrote:
Mon Sep 14, 2020 5:19 pm
Thanks @codewalker I just updated to the latest version, and it seems to vary by App. For example, if I use this: https://play.google.com/store/apps/deta ... iorecorder it works ok.
But if I use this one: https://play.google.com/store/apps/deta ... cerecorder it just records a short snippet, which plays back in 'slow motion'.
When trying to use the Google Assistant it fails to recognise any speech.

Could you possibly please try with those apps and see if you have the same problem?

Thanks,
Ben

benwillcox
Posts: 288
Joined: Wed Oct 05, 2016 6:34 pm
languages_spoken: english
ODROIDs: C1+,C2, N2, N2+
Location: United Kingdom
Has thanked: 35 times
Been thanked: 20 times
Contact:

Re: USB microphone broken for Android Pie (20191121)

Post by benwillcox »

The mic I'm using is this one: https://www.ebay.co.uk/itm/USB-Mini-Cli ... 2749.l2649 which reports as 0c76:160a
It works using "Voice Recorder" and "Voice Recorder - Record Unlimited Audio" but with "Easy Voice Recorder" I get this error:

Image

and Google Assistant doesn't detect any audio.

But, did another test with the Odroid webcam with integrated mic (https://www.hardkernel.com/shop/odroid-usb-cam-720p/) and this one actually works with all apps including Google Assistant.

I've just tried both mics with the LineageOS image and they work with all the voice recorder apps including Google Assistant.

User avatar
codewalker
Posts: 1110
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 44 times
Been thanked: 78 times
Contact:

Re: USB microphone broken for Android Pie (20191121)

Post by codewalker »

Show me the adb log when app crashes.

benwillcox
Posts: 288
Joined: Wed Oct 05, 2016 6:34 pm
languages_spoken: english
ODROIDs: C1+,C2, N2, N2+
Location: United Kingdom
Has thanked: 35 times
Been thanked: 20 times
Contact:

Re: USB microphone broken for Android Pie (20191121)

Post by benwillcox »

Hi @codewalker, logcat here: https://drive.google.com/file/d/1PkZeI7 ... sp=sharing

I opened Easy Voice Recorder and got the message in my screenshot above after trying to make a recording, hopefully captured in the log

User avatar
codewalker
Posts: 1110
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 44 times
Been thanked: 78 times
Contact:

Re: USB microphone broken for Android Pie (20191121)

Post by codewalker »

I've found why your USB microphone can't record.
"Easy Voice Recorder" use 16000hz for sample rate but your USB microphone don't support 16000.

Other apps use 44100hz for sample rate,

Try to read your device spec

I have another usb microphone that can't record with "Easy voice recorder" as in your situation.

https://www.adafruit.com/product/3367

Code: Select all

2|:/ # cat /proc/asound/card1/stream0
C-Media Electronics Inc. USB PnP Sound Device at usb-xhci-hcd.0.auto-1.4, full  : USB Audio

Capture:
  Status: Stop
  Interface 1
    Altset 1
    Format: S16_LE
    Channels: 1
    Endpoint: 2 IN (ADAPTIVE)
    Rates: 48000, 44100
:/ #
If you want to solve this problem, you use other one that supported 16000hz or you use the recorder app that only used 44100hz or 48000hz sample rate.

User avatar
odroid
Site Admin
Posts: 35920
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1325 times
Been thanked: 915 times
Contact:

Re: USB microphone broken for Android Pie (20191121)

Post by odroid »

@codewalker,
Does the Lineage-OS have a dynamic sampling-rate-converter internally while the AOSP doesn't ?

User avatar
codewalker
Posts: 1110
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 44 times
Been thanked: 78 times
Contact:

Re: USB microphone broken for Android Pie (20191121)

Post by codewalker »

"Easy Voice Recorder" can change sample rate.
Settings -> Tunning -> "Sample rate"

"Easy Voice Recorder" set 44kHz by default on LineageOS.
20200918_145344.jpg
20200918_145344.jpg (376.79 KiB) Viewed 834 times
Last edited by codewalker on Fri Sep 18, 2020 5:09 pm, edited 1 time in total.

benwillcox
Posts: 288
Joined: Wed Oct 05, 2016 6:34 pm
languages_spoken: english
ODROIDs: C1+,C2, N2, N2+
Location: United Kingdom
Has thanked: 35 times
Been thanked: 20 times
Contact:

Re: USB microphone broken for Android Pie (20191121)

Post by benwillcox »

Thanks for this @codewalker.

When I change to LineageOS and install Easy Voice Recorder it does work with the sampling frequency set to 16Khz, which seems to be the default setting after an install of the app. Although there are a few background clicking noises in the audio so it's not perfect it is still easy to hear.

This is the output of my microphone:

Code: Select all

Capture:
  Status: Stop
  Interface 1
    Altset 1
    Format: S16_LE
    Channels: 1
    Endpoint: 2 IN (ASYNC)
    Rates: 48000, 44100, 32000, 22050, 11025, 8000
The remaining part of the puzzle is why Google Assistant voice control works with the 'bad' microphone on Lineage but doesn't work on the Official ROM. Unless the sample rate can be adjusted in Google Assistant in the same way but I didn't see any setting for this.

benwillcox
Posts: 288
Joined: Wed Oct 05, 2016 6:34 pm
languages_spoken: english
ODROIDs: C1+,C2, N2, N2+
Location: United Kingdom
Has thanked: 35 times
Been thanked: 20 times
Contact:

Re: USB microphone broken for Android Pie (20191121)

Post by benwillcox »

@codewalker in the meantime, do you have any details of the microphone you have that does work correctly? With lots of the cheap ebay mics its difficult to find any that document their supported sampling rate.

User avatar
codewalker
Posts: 1110
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 44 times
Been thanked: 78 times
Contact:

Re: USB microphone broken for Android Pie (20191121)

Post by codewalker »

I've checked adb log and google assisant used 16k sample rate.
LineageOS could convert sampling rate dynamically.
And you must install higer than nano variant for open gapps package.

benwillcox
Posts: 288
Joined: Wed Oct 05, 2016 6:34 pm
languages_spoken: english
ODROIDs: C1+,C2, N2, N2+
Location: United Kingdom
Has thanked: 35 times
Been thanked: 20 times
Contact:

Re: USB microphone broken for Android Pie (20191121)

Post by benwillcox »

Thanks @codewalker, I had open gapps micro installed on the official ROM. Do you think there is a way that dynamic sampling rate could be added to the official ROM image? Can you let me know the model of the microphone you have that does work with 16kHz sampling rate?

benwillcox
Posts: 288
Joined: Wed Oct 05, 2016 6:34 pm
languages_spoken: english
ODROIDs: C1+,C2, N2, N2+
Location: United Kingdom
Has thanked: 35 times
Been thanked: 20 times
Contact:

Re: USB microphone broken for Android Pie (20191121)

Post by benwillcox »

Hi @codewalker, I wondered if you had any suggestions on the above please? The only microphone I have that works is built into the Odroid webcam, but I really would like microphone that is separate and works with Google Assistant.

Many thanks.
Ben

User avatar
codewalker
Posts: 1110
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 44 times
Been thanked: 78 times
Contact:

Re: USB microphone broken for Android Pie (20191121)

Post by codewalker »

I've asked voodik resampling rate library, but he didn't know that about it.
I recommand to find a microphone that supports 16Khz sample rate.
It will probably be more expensive than yours.

benwillcox
Posts: 288
Joined: Wed Oct 05, 2016 6:34 pm
languages_spoken: english
ODROIDs: C1+,C2, N2, N2+
Location: United Kingdom
Has thanked: 35 times
Been thanked: 20 times
Contact:

Re: USB microphone broken for Android Pie (20191121)

Post by benwillcox »

Ok thanks codewalker.
It's quite hard to find a suitable microphone as nobody seems to publish the sampling rates supported by their devices. If anyone else has any suggestions of mic that supports 16Khz sampling rate that has worked successfully with Google Assistant that would be great.
I would also be happy with a USB to 3.5mm adapter, although most of these have a built in headphone socket and seem to not work properly.

User avatar
codewalker
Posts: 1110
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 44 times
Been thanked: 78 times
Contact:

Re: USB microphone broken for Android Pie (20191121)

Post by codewalker »

Hi, All.
I've found the solution.

Code: Select all

$ adb remount
$ adb shell
# vi /vendor/build.prop

//add this line at end of file.
persist.sys.useint16resampler=0

Amlogic added resampler function, but it makes microphone only supported 16kHz sampling rate not working.

'persist.sys.useint16resampler=0' makes to use default resampler function instead of amlogic's resampler.
These users thanked the author codewalker for the post (total 4):
odroid (Wed Nov 11, 2020 5:47 pm) • benwillcox (Wed Nov 11, 2020 6:58 pm) • Sailor (Wed Nov 11, 2020 7:24 pm) • tobetter (Wed Nov 11, 2020 8:44 pm)

benwillcox
Posts: 288
Joined: Wed Oct 05, 2016 6:34 pm
languages_spoken: english
ODROIDs: C1+,C2, N2, N2+
Location: United Kingdom
Has thanked: 35 times
Been thanked: 20 times
Contact:

Re: USB microphone broken for Android Pie (20191121)

Post by benwillcox »

Just tried this out, and it works! Many thanks for fixing this :-)
These users thanked the author benwillcox for the post:
tobetter (Wed Nov 11, 2020 8:44 pm)

Post Reply

Return to “Android”

Who is online

Users browsing this forum: No registered users and 0 guests