From 0fdd2368c1402795e665d19da9205beb07b3653d Mon Sep 17 00:00:00 2001 From: guest271314 Date: Sun, 11 Mar 2018 19:49:04 -0700 Subject: [PATCH 1/9] Test SpeechSynthesisUtterance volume attribute TODO: automate test to verify audio output of speechSynthesis.speak() using Web Audio API. --- ...tterance-volume-attribute-test-manual.html | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 speech-api/SpeechSynthesisUtterance-volume-attribute-test-manual.html diff --git a/speech-api/SpeechSynthesisUtterance-volume-attribute-test-manual.html b/speech-api/SpeechSynthesisUtterance-volume-attribute-test-manual.html new file mode 100644 index 00000000000000..08d00ee4b9e66b --- /dev/null +++ b/speech-api/SpeechSynthesisUtterance-volume-attribute-test-manual.html @@ -0,0 +1,33 @@ + + + + 5.2.3 SpeechSynthesisUtterance volume attribute test - manual + + + + + From 4ec675380896ad787270e4a46430d691fbb6f786 Mon Sep 17 00:00:00 2001 From: guest271314 Date: Mon, 18 Mar 2019 19:01:02 +0000 Subject: [PATCH 2/9] MediaSource crashes tab at Chromium/Chrome MediaSource crashes tab at Chromium/Chrome References: https://github.com/web-platform-tests/wpt/issues/15816 https://bugs.chromium.org/p/chromium/issues/detail?id=820997 https://github.com/guest271314/MediaFragmentRecorder --- ...gmentsWithMediaSourceAndMediaRecorder.html | 187 ++++++++++++++++++ 1 file changed, 187 insertions(+) create mode 100644 mediacapture-fromelement/testRecordingMediaFragmentsWithMediaSourceAndMediaRecorder.html diff --git a/mediacapture-fromelement/testRecordingMediaFragmentsWithMediaSourceAndMediaRecorder.html b/mediacapture-fromelement/testRecordingMediaFragmentsWithMediaSourceAndMediaRecorder.html new file mode 100644 index 00000000000000..17cb5808e5496c --- /dev/null +++ b/mediacapture-fromelement/testRecordingMediaFragmentsWithMediaSourceAndMediaRecorder.html @@ -0,0 +1,187 @@ + + + + + Test recording media fragments using MediaSource and MediaRecorder + + + + + + +

click

+ + + From cc69d844995a973785df73ab6157253a239ac8a4 Mon Sep 17 00:00:00 2001 From: guest271314 Date: Wed, 20 Mar 2019 02:58:49 +0000 Subject: [PATCH 3/9] Test HTMLMediaElement.captureStream() Outputs expected result at Firefox. Crashes tab at Chromium/Chrome https://github.com/web-platform-tests/wpt/issues/15816 --- ...source-htmlmediaelement-capturestream.html | 177 ++++++++++++++++++ 1 file changed, 177 insertions(+) create mode 100644 media-source/mediasource-htmlmediaelement-capturestream.html diff --git a/media-source/mediasource-htmlmediaelement-capturestream.html b/media-source/mediasource-htmlmediaelement-capturestream.html new file mode 100644 index 00000000000000..7246f0942f5fcf --- /dev/null +++ b/media-source/mediasource-htmlmediaelement-capturestream.html @@ -0,0 +1,177 @@ + + + + Test HTMLMediaElement.captureStream() with src set to MediaSource Blob URL + + + + + +

click

+ + + From 25493ae09f21b5c843437db2fd47f2031746cc34 Mon Sep 17 00:00:00 2001 From: guest271314 Date: Wed, 20 Mar 2019 03:18:36 +0000 Subject: [PATCH 4/9] Revert "Test HTMLMediaElement.captureStream()" --- ...source-htmlmediaelement-capturestream.html | 177 ------------------ 1 file changed, 177 deletions(-) delete mode 100644 media-source/mediasource-htmlmediaelement-capturestream.html diff --git a/media-source/mediasource-htmlmediaelement-capturestream.html b/media-source/mediasource-htmlmediaelement-capturestream.html deleted file mode 100644 index 7246f0942f5fcf..00000000000000 --- a/media-source/mediasource-htmlmediaelement-capturestream.html +++ /dev/null @@ -1,177 +0,0 @@ - - - - Test HTMLMediaElement.captureStream() with src set to MediaSource Blob URL - - - - - -

click

- - - From f5803346fdb2d02b77633f9f31273bd99dae3e80 Mon Sep 17 00:00:00 2001 From: guest271314 Date: Mon, 6 May 2019 23:51:47 +0000 Subject: [PATCH 5/9] Update WPT Manual Test --- ...tterance-volume-attribute-test-manual.html | 82 +++++++++++++------ 1 file changed, 57 insertions(+), 25 deletions(-) diff --git a/speech-api/SpeechSynthesisUtterance-volume-attribute-test-manual.html b/speech-api/SpeechSynthesisUtterance-volume-attribute-test-manual.html index 08d00ee4b9e66b..bfdb55272bbcef 100644 --- a/speech-api/SpeechSynthesisUtterance-volume-attribute-test-manual.html +++ b/speech-api/SpeechSynthesisUtterance-volume-attribute-test-manual.html @@ -1,33 +1,65 @@ + - 5.2.3 SpeechSynthesisUtterance volume attribute test - manual + 5.2.3 SpeechSynthesisUtterance volume attribute test - Manual + + handleVoicesChanged = async e => { + for (const volume of volumes) { + await new Promise(resolve => { + document.getElementById("volume").value = volume; + const utterance = new SpeechSynthesisUtterance(); + utterance.text = "hello universe"; + utterance.volume = volume; + utterance.onend = resolve; + window.speechSynthesis.speak(utterance); + }); + }; + }; + onload = e => { + document.getElementById("test").onclick = e => { + if (window.speechSynthesis.getVoices().length === 0) { + window.speechSynthesis.onvoiceschanged = handleVoicesChanged; + } else { + handleVoicesChanged() + } + }; + }; + +
+

Specification:

+ volume attribute +
+ This attribute specifies the speaking volume for the utterance. It ranges between 0 and 1 inclusive, with 0 being the lowest volume and 1 the highest volume, with a default of 1. If SSML is used, this value will be overridden by prosody tags in the markup. +
+
+
+ Click to execute window.speechSynthesis.speak() with volume attribute set to 0, 0.16666666666666666, 0.3333333333333333, 0.5, 0.6666666666666666, 0.8333333333333333, 0.9999999999999999. +
+
+
+ + +

Manaul Test:

Does the volume of audio output change? +
- +l> From 1bf86697c0e6d319828017a5935819a9809beb50 Mon Sep 17 00:00:00 2001 From: guest271314 Date: Wed, 8 May 2019 14:11:10 +0000 Subject: [PATCH 6/9] Delete MediaSource-MediaStream test Delete testRecordingMediaFragmentsWithMediaSourceAndMediaRecorder.html from PR including Web Speech API test --- ...gmentsWithMediaSourceAndMediaRecorder.html | 187 ------------------ 1 file changed, 187 deletions(-) delete mode 100644 mediacapture-fromelement/testRecordingMediaFragmentsWithMediaSourceAndMediaRecorder.html diff --git a/mediacapture-fromelement/testRecordingMediaFragmentsWithMediaSourceAndMediaRecorder.html b/mediacapture-fromelement/testRecordingMediaFragmentsWithMediaSourceAndMediaRecorder.html deleted file mode 100644 index 17cb5808e5496c..00000000000000 --- a/mediacapture-fromelement/testRecordingMediaFragmentsWithMediaSourceAndMediaRecorder.html +++ /dev/null @@ -1,187 +0,0 @@ - - - - - Test recording media fragments using MediaSource and MediaRecorder - - - - - - -

click

- - - From 8568526e1cf4347184480d213204cb8bfef4eae5 Mon Sep 17 00:00:00 2001 From: guest271314 Date: Wed, 8 May 2019 14:14:26 +0000 Subject: [PATCH 7/9] Update SpeechSynthesisUtterance-volume-attribute-test-manual.html --- ...chSynthesisUtterance-volume-attribute-test-manual.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/speech-api/SpeechSynthesisUtterance-volume-attribute-test-manual.html b/speech-api/SpeechSynthesisUtterance-volume-attribute-test-manual.html index bfdb55272bbcef..7cf4c37dfd4091 100644 --- a/speech-api/SpeechSynthesisUtterance-volume-attribute-test-manual.html +++ b/speech-api/SpeechSynthesisUtterance-volume-attribute-test-manual.html @@ -19,9 +19,9 @@