New issue
Advanced search Search tips

Issue 884482 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Closed: Sep 26
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 1
Type: Bug-Regression



Sign in to add a comment

NotReadableError: Could not start audio source if sample rate is set below 44100

Reported by vela1...@gmail.com, Sep 15

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3553.2 Safari/537.36

Steps to reproduce the problem:
1. Set mic sample rate at 22050 Hz
2. Open console
3. Try to test mic using https://webaudiodemos.appspot.com/AudioRecorder/index.html  (any online audio test page will throw the error)

What is the expected behavior?
Expected to work :-)

What went wrong?
I am getting "NotReadableError: Could not start audio source" if audio sample rate is set below 44100 Hz in Canary Version 71.0.3548.0.

Chorme version 69.0.3497.81 works fine.
chrome://media-internals/ output...

[
  {},
  {
    "29:1": {
      "channel_layout": "STEREO",
      "channels": 2,
      "component_id": 1,
      "component_type": 1,
      "device_id": "default",
      "device_type": "pcm_low_latency",
      "effects": "NO_EFFECTS",
      "frames_per_buffer": 256,
      "owner_id": 29,
      "sample_rate": 22050,
      "status": "started",
      "render_process_id": 8,
      "web_contents_title": "Facility One"
    },
    "30:2": {
      "channel_layout": "STEREO",
      "channels": 2,
      "component_id": 2,
      "component_type": 1,
      "device_id": "default",
      "device_type": "pcm_low_latency",
      "effects": "NO_EFFECTS",
      "frames_per_buffer": 256,
      "owner_id": 30,
      "sample_rate": 22050,
      "status": "started",
      "render_process_id": 8,
      "web_contents_title": "Facility One"
    }
  },
  {
    "29:7": {
      "channel_layout": "STEREO",
      "channels": 2,
      "component_id": 7,
      "component_type": 2,
      "device_id": "AppleUSBAudioEngine:Dictaphone Corporation:PowerMicII-NS:14523100:2,1",
      "device_type": "pcm_low_latency",
      "effects": "NO_EFFECTS",
      "frames_per_buffer": 256,
      "owner_id": 29,
      "sample_rate": 22050,
      "status": "started",
      "volume": 1
    },
    "30:8": {
      "channel_layout": "STEREO",
      "channels": 2,
      "component_id": 8,
      "component_type": 2,
      "device_id": "AppleUSBAudioEngine:Dictaphone Corporation:PowerMicII-NS:14523100:2,1",
      "device_type": "pcm_low_latency",
      "effects": "NO_EFFECTS",
      "frames_per_buffer": 256,
      "owner_id": 30,
      "sample_rate": 22050,
      "status": "started",
      "volume": 1
    }
  }
]

Did this work before? Yes Tested on version 69.0.3497.81 but I am sure worked on version 70 too

Chrome version: 71.0.3553.2  Channel: canary
OS Version: OS X 10.13.6
Flash Version:
 
Screen Shot 2018-09-08 at 8.47.18 AM.png
20.3 KB View Download
Screen Shot 2018-09-10 at 11.16.40 PM.png
32.8 KB View Download
Labels: Needs-Bisect Needs-Triage-M71
Working on Version 69.0.3497.92 (Official Build) (64-bit)

Not Working on Version 70.0.3538.16 (Official Build) beta (64-bit)
Cc: phanindra.mandapaka@chromium.org
Labels: Triaged-ET Needs-Feedback
vela1606@ Thanks for the issue...
Tried to reproduce the issue reported chrome 71.0.3553.2 using Mac 10.13.6. Attaching screen-cast for reference.
Steps:
------
1. Launched reported chrome 
2. Navigated to given URL "https://webaudiodemos.appspot.com/AudioRecorder/index.html "
3. Opened console 
As we are able to play and not find that "sample rate at 22050 Hz " to change the value 

@Repoter: Could you please check the attached screen cast and please let us know if anything missed from our end and provide proper steps to set the sample rate at 22050 Hz/provide sereen-cast fro better triaging it.

Thanks..! 

884482.mp4
2.0 MB View Download
Here is the chrome://version/ output and another screenshot of my MIDI settings...

By the way, Just ran a test on a band new MacbookPro and I was able to duplicate the error. Plus I have about 5 users running on Canary and they all experienced the error.

Are you running on 22,050 Hz 2ch 16-bit Integer???

Google Chrome	71.0.3554.0 (Official Build) canary (64-bit)
Revision	50b24262ba0c4e14c723112f9aad3686dc6462c1-refs/branch-heads/3554@{#1}
OS	Mac OS X
JavaScript	V8 7.1.113
Flash	31.0.0.113 /Users/ernesto/Library/Application Support/Google/Chrome Canary/PepperFlash/31.0.0.113/PepperFlashPlayer.plugin
User Agent	Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3554.0 Safari/537.36
Command Line	/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary --flag-switches-begin --flag-switches-end
Executable Path	/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary
Profile Path	/Users/ernesto/Library/Application Support/Google/Chrome Canary/Default
Variations	2c707b42-1bbdce27
411b6d4e-3f4a17df
b7d3b6c2-f23d1dea
fe69e053-83ce3e87
9d7f502c-d5d68bac
d01ab0d3-269a5327
16e0dd70-3f4a17df
66df3e9d-a3a14831
ebeb14fc-3f4a17df
b7e2524c-3f4a17df
a6674cf-4f295bf2
da89714-4ad60575
64da5c1e-f23d1dea
8982496f-3f4a17df
61832c80-3f4a17df
cc20827f-ca7d8d80
9041608a-f23d1dea
5852bcb0-a75ab0e
9853922b-e3d9cd05
6025934e-3f4a17df
7c1bc906-b5809d46
9def365c-f23d1dea
47e5d3db-f23d1dea
125b7f68-26e7b859
d442dfb7-eeca42f7
9ca1387e-f23d1dea
1149accc-3f4a17df
6557d030-6557d030
34d450b1-661b46ec
a582a1b8-ad75ce17
495970ba-ca7d8d80
7f7844ec-ca7d8d80
3042ad4b-ca54bb47
ac6e1b9-d93a0620
44827ee5-f23d1dea
edbcf7c5-2d3ce014
5485fc4d-3d47f4f4
93731dca-3d47f4f4
e111fcd-f23d1dea
9b4c4257-6ad6e56e
43f62d3b-ca7d8d80
c992f345-ca7d8d80
9e5c75f1-adcd296
6872f671-991e1e1
6fa07eb4-f2718d9f
4934552d-3f4a17df
7a5ba892-3f4a17df
d1cd70a5-9abb03f9
4ea303a6-c2ab5f34
6e6e0c7e-f23d1dea
95876445-ca7d8d80
d92562a9-4d2fac87
c8889961-a2d707c6
67246da1-f23d1dea
cc54eb06-3f4a17df
58a025e3-36e97b2c
ad6d27cc-7075cd8
df072bba-44dc0b8
8576baf1-f23d1dea
23496387-232b3cab
2e7f6029-f23d1dea
344833e9-1525b35b
3f273a97-e3ad1896
4bc337ce-87ea0e5e
9a2f4e5b-7b04217c
494d8760-52325d43
3ac60855-486e2a9c
f296190c-a22f0910
4442aae2-a5822863
ed1d377-e1cc0f14
75f0f0a0-e1cc0f14
e2b18481-bca011b3
e7e71889-4ad60575
f9e5da91-508355f5
5e60f31d-1410f10
6e3b857e-61c25c72
6a51bb09-ca7d8d80
b0ea13bc-3f4a17df
6b5f0f2d-3384fa37
94e68624-3f4a17df
cc73f8a1-a3a14831
de384ee6-f6a9f2b7
b4e8892d-f23d1dea
10a311eb-cf4f6ead
dd82d379-a3a14831
Screen Shot 2018-09-17 at 10.50.00 AM.png
81.2 KB View Download
Project Member

Comment 5 by sheriffbot@chromium.org, Sep 17

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Components: -Blink Blink>WebAudio
Components: -Blink>WebAudio Blink>GetUserMedia
Seems like the error message is from getUserMedia:
https://cs.chromium.org/chromium/src/content/renderer/media/stream/user_media_processor.cc?type=cs&q="Could+not+start+audio+source"&g=0&l=1186
Labels: Needs-Feedback
vela1606@ Thanks for the feedback 

As per comment #0 and #4, tried to change the value "22,050 Hz 2ch 16-bit Integer " but not seen on Mac 10.13.6 and 10.13.3(With retina) and 10.13.1(Touch bar). Attaching screen-cast for reference.


@Reporter: Could you please confirm that the issue is reproducible with only "PowerMicll-NS >>22,050 Hz 2ch 16-bit Integer".

Thanks..!
884482.mp4
2.2 MB View Download
I can not duplicate the issue with the built-in inputs, I get the same options for the built-in mic and speaker.  

The only input and can set to 22,050 is the PowerMicII-NS. (see images)

Would you like me to upload an error log? if yes, which one.





Screen Shot 2018-09-18 at 10.29.15 AM.png
78.7 KB View Download
Screen Shot 2018-09-18 at 10.29.07 AM.png
72.1 KB View Download
Project Member

Comment 10 by sheriffbot@chromium.org, Sep 18

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: TE-Hardware-Dependency
vela1606@Thnks for the feedback...

As per comment #9, the issue is related to PowerMicII-NS input is not available to reproduce and test this issue hence requesting someone from 
respective team for help in further traging of this issue and adding TE-Hardware-Dependency label to it.
 
Thanks..!
Components: -Blink>GetUserMedia Blink>GetUserMedia>Mic
Can you select any other rate for the PowerMicII-NS microphone? If so, does it work?

Have you installed any special drivers or other extra tools for the PowerMicII-NS microphone?
Is the same sample rate used for both input and output or is the issue related to using different rates for in and out?
Cc: henrika@chromium.org ossu@chromium.org
Labels: -Needs-Triage-M71 OS-Chrome OS-Linux OS-Windows
Owner: maxmorin@google.com
Status: Assigned (was: Unconfirmed)
Labels: -Pri-2 Pri-3
Reducing priority since input devices which only supports 22050 Hz are extremely rare. 
Cc: jonasolsson@chromium.org
Project Member

Comment 18 by bugdroid1@chromium.org, Sep 25

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/68e385c21955cafed05305d779d2b2fa2edb4eab

commit 68e385c21955cafed05305d779d2b2fa2edb4eab
Author: Max Morin <maxmorin@chromium.org>
Date: Tue Sep 25 09:41:15 2018

Allow microphone streams with weird sample rates.

Sample rates not divisible by 100 still won't be allowed to use the APM
in audio service, but this change allows stream that don't use audio
processing, as well as streams that use audio processing in the renderer.

Bug:  884482 
Change-Id: I80a87bdf5c7ae2daf48592ce96994a3203212383
Reviewed-on: https://chromium-review.googlesource.com/1242943
Reviewed-by: Oskar Sundbom <ossu@chromium.org>
Commit-Queue: Max Morin <maxmorin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#593878}
[modify] https://crrev.com/68e385c21955cafed05305d779d2b2fa2edb4eab/content/renderer/media/stream/processed_local_audio_source.cc


Comment 13...
Here are the Mic sample rate options and test results

8,000 Hz - Works
11,025 Hz - Failed
22.050 Hz - Failed
44,100 Hz - Works
48,000 Hz - Works

Comment 14...
Both Input and Output have the same options

Comment 16...
Although they are "rare"... this bug mostly affect profesional/commercial web application (like mine).
In my case, radiologist... so you could say this bug will have a direct negative impact on patient care.  :-/
 


The problem will be resolved by the change in Comment #18. Will reach Canary soon and then gradually be available in Dev, Beta and Stable.
Status: Started (was: Assigned)
We can merge probably merge the fix to M70 (so the issue doesn't reach stable).
Reporter: could you verify that the issue is fixed in Canary version 71.0.3562.0 (should be available tomorrow)?
Will do, Thanks!
Fixed! Is working in Version 71.0.3562.0 (Official Build) canary (64-bit)

Thanks!
Thanks for the feedback.

maxmorin@: might be worth merging to M70 as stated in #21.
Labels: -Pri-3 RegressedIn-70 Target-70 Merge-Request-70 M-70 FoundIn-70 Pri-1
Owner: maxmorin@chromium.org
Status: Fixed (was: Started)
Requesting merge for the CL in comment 18. It's very simple and verified in comment 23 to fix the issue.
Project Member

Comment 26 by sheriffbot@chromium.org, Sep 26

Labels: -Merge-Request-70 Merge-Review-70 Hotlist-Merge-Review
This bug requires manual review: M70 has already been promoted to the beta branch, so this requires manual review
Please contact the milestone owner if you have questions.
Owners: benmason@(Android), kariahda@(iOS), geohsu@(ChromeOS), abdulsyed@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Merge-Review-70 Merge-Approved-70
Project Member

Comment 28 by bugdroid1@chromium.org, Sep 28

Labels: -merge-approved-70 merge-merged-3538
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/e1fdac95a6e2f73512325e9c3433d4aa68232427

commit e1fdac95a6e2f73512325e9c3433d4aa68232427
Author: Max Morin <maxmorin@chromium.org>
Date: Fri Sep 28 10:01:05 2018

[M70]Allow microphone streams with weird sample rates.

Sample rates not divisible by 100 still won't be allowed to use the APM
in audio service, but this change allows stream that don't use audio
processing, as well as streams that use audio processing in the renderer.

Bug:  884482 
Change-Id: I80a87bdf5c7ae2daf48592ce96994a3203212383
Reviewed-on: https://chromium-review.googlesource.com/1242943
Reviewed-by: Oskar Sundbom <ossu@chromium.org>
Commit-Queue: Max Morin <maxmorin@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#593878}(cherry picked from commit 68e385c21955cafed05305d779d2b2fa2edb4eab)
Reviewed-on: https://chromium-review.googlesource.com/1251044
Reviewed-by: Max Morin <maxmorin@chromium.org>
Cr-Commit-Position: refs/branch-heads/3538@{#729}
Cr-Branched-From: 79f7c91a2b2a2932cd447fa6f865cb6662fa8fa6-refs/heads/master@{#587811}
[modify] https://crrev.com/e1fdac95a6e2f73512325e9c3433d4aa68232427/content/renderer/media/stream/processed_local_audio_source.cc

Labels: Merge-Merged-70-3538
The following revision refers to this bug: 
https://chromium.googlesource.com/chromium/src.git/+/e1fdac95a6e2f73512325e9c3433d4aa68232427

Commit: e1fdac95a6e2f73512325e9c3433d4aa68232427
Author: maxmorin@chromium.org
Commiter: maxmorin@chromium.org
Date: 2018-09-28 10:01:05 +0000 UTC

[M70]Allow microphone streams with weird sample rates.

Sample rates not divisible by 100 still won't be allowed to use the APM
in audio service, but this change allows stream that don't use audio
processing, as well as streams that use audio processing in the renderer.

Bug:  884482 
Change-Id: I80a87bdf5c7ae2daf48592ce96994a3203212383
Reviewed-on: https://chromium-review.googlesource.com/1242943
Reviewed-by: Oskar Sundbom <ossu@chromium.org>
Commit-Queue: Max Morin <maxmorin@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#593878}(cherry picked from commit 68e385c21955cafed05305d779d2b2fa2edb4eab)
Reviewed-on: https://chromium-review.googlesource.com/1251044
Reviewed-by: Max Morin <maxmorin@chromium.org>
Cr-Commit-Position: refs/branch-heads/3538@{#729}
Cr-Branched-From: 79f7c91a2b2a2932cd447fa6f865cb6662fa8fa6-refs/heads/master@{#587811}

Sign in to add a comment