How should we handle when SpeechSynthesis is not available?
まだ誰も着手していません。
評価
この issue はまだ評価されていません。
説明
I found that it felt sketchy to have a getSynth() that could return null on a platform that doesn't support speech synthesis. We have some support for that case, but I think we rely on assertions a lot to guard against null pointer exceptions. In the wild, we wouldn't have assertions so we may want to be graceful. I added a couple of spots that checked if we had a synth before calling operations on it. Does this seem correct to you? I'd hate for the sim to break just because the platform doesn't have speech synthesis. For example, in the app, right?
Currently the only platform that does not support SpeechSynthesis is Android in a WebView. So correct, this could come up in the Android app, and it has! https://github.com/phetsims/qa/issues/608
I think this should hard crash and that it is up to us to not make SpeechSynthesis requests unless we are confident the platform can handle it. I almost want to replace the assertion in getSynth with an Error, I want it to let us know loudly on platforms where we expect the synth to be available but is not.
I can see both sides of the argument though. Lets talk more if you still prefer it to be graceful.
- 主要言語
- TypeScript
- スター
- 1
- フォーク
- 5
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
phetsims/utterance-queue のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
phetsims/utterance-queue#125 ·
-
Remote service voices are causing problems再び着手できるかも @jessegreenberg が 474 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
phetsims/utterance-queue#122 · コメント 2 件 · 担当者 1 名 ·
-
Rename UtteranceQueue.addToBack再び着手できるかも @jessegreenberg が 501 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
phetsims/utterance-queue#121 · 担当者 1 名 ·
-
Remove addToFront再び着手できるかも @jessegreenberg が 501 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
phetsims/utterance-queue#120 · 担当者 1 名 ·
-
dev:voicing type:i18n
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
phetsims/utterance-queue#119 · コメント 1 件 ·
phetsims/utterance-queue の issue をすべて見る
似ている issue
-
security-scan
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
enhancement from-studio
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
esengine/DeepSeek-Reasonix#12048 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
fix(data-lake): land GitHub callback failures on the lake instead of the home page (epic #3813)オープンbug data-lake github-integration UI/UX
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
test: pet colorsオープンtestplan-item
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
bug claimable good first issue pillar/platforms
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
hurttlocker/o8#3277 ·
メンテナーはふだん 1 日以内に返信