@pipeup/voice 0.8.2 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -24,15 +24,20 @@ mount();
24
24
 
25
25
  ## What it sends, and to whom
26
26
 
27
- Pipeup itself makes no request. **Your browser, not Pipeup, may send your voice to Google or Apple.**
27
+ Pipeup itself makes no request. **Your browser, not Pipeup, may send your voice to its maker's speech service.**
28
28
 
29
29
  - The first time you press the microphone, Pipeup asks you, in one sentence, before anything starts:
30
- - **Chrome, when it can work on your device:** "Your words are worked out on this device. Nothing is sent."
31
- - **Chrome, when it needs a speech pack first:** the browser downloads the pack for your language from
32
- Google, once, and your words then stay on your device.
33
- - **Otherwise** (Chrome without a pack, and always in Safari): your voice goes to Google (in Chrome) or
34
- Apple (in Safari) to be turned into words. Pipeup doesn't keep it.
35
- - **Safari can't tell Pipeup where it listens**, so Pipeup always shows the service sentence there.
30
+ - **When the browser can work on your device:** "Your words are worked out on this device. Nothing is sent."
31
+ - **When it needs a speech pack first:** the browser downloads the pack for your language from its maker,
32
+ once, and your words then stay on your device.
33
+ - **Otherwise** (Chrome without a pack): your voice goes to the browser's speech service to be turned into
34
+ words. Pipeup doesn't keep it.
35
+ - **Safari** may work some languages (such as English) out on the device and send others to Apple, and
36
+ can't tell Pipeup which, so its sentence says so: "Safari uses Apple's speech recognition. Depending on the language and
37
+ device the words are worked out here or your voice is sent to Apple; Pipeup can't tell which, and doesn't
38
+ keep it."
39
+ - **A language the engine can't do at all** (Firefox, for a language with no model) is said before anything
40
+ starts, with Start greyed until you choose another.
36
41
  - Your answer and the language are kept in this browser's local storage. Where the browser can't keep
37
42
  them, the panel says "This browser won't remember this choice". On a page opened from disk (`file://`) the
38
43
  choice may apply to every local file.
@@ -42,9 +47,18 @@ The package states this in `package.json` under `pipeup.network`; `pipeup check`
42
47
  ## Where it works
43
48
 
44
49
  - **Chrome and Edge:** `SpeechRecognition`, on device where the browser allows it.
45
- - **Safari:** `webkitSpeechRecognition`, through Apple's service.
46
- - **Firefox:** has no speech engine, so Pipeup draws no microphone at all. The system's own dictation
47
- (macOS, Windows, iOS and Android all have one) still types into any field, including Pipeup's.
50
+ - **Safari:** `webkitSpeechRecognition`, through Apple's speech recognition. Safari asks twice the first time:
51
+ for the microphone, and to "capture your audio and use it for speech recognition"; macOS may also ask once
52
+ whether Safari may use Speech Recognition. **A refusal lasts for the page**: allow it, then reload. If the
53
+ microphone is allowed but Pipeup says Safari isn't allowed to use Apple's speech recognition, turn on Siri or
54
+ Dictation, or allow Safari under System Settings › Privacy & Security › Speech Recognition, then reload.
55
+ Languages Apple sends to its service stop by themselves after about a minute; press the microphone again.
56
+ Safari can send everything said so far again; Pipeup writes it once, so a phrase repeated word for word
57
+ straight after itself is written once too.
58
+ - **Firefox 157 to 159:** has no speech engine, so Pipeup draws no microphone at all and says so once in the
59
+ browser console. The system's own dictation (macOS, Windows, iOS and Android all have one) still types into
60
+ any field, including Pipeup's. Firefox 160 Beta and Nightly have an on-device engine (a one-time model
61
+ download from Mozilla); Mozilla intends to ship it in Firefox 161.
48
62
 
49
63
  On a page opened from disk, **Chrome and Safari ask for the microphone again on every load**; that is the
50
64
  browsers' rule, and Pipeup's own choice above isn't asked again.
@@ -56,7 +70,10 @@ browsers' rule, and Pipeup's own choice above isn't asked again.
56
70
  - Words in progress show in the box as you speak and become final as the engine settles on them.
57
71
  - The language is the nearest `lang` attribute above the commentable area, else the page's, else the
58
72
  browser's. The panel shows it and lets you change it.
59
- - Problems (microphone blocked, nothing heard, no network, no microphone) are said in plain words.
73
+ - Problems (microphone blocked, nothing heard, no network, no microphone, the browser's speech service off)
74
+ are said in plain words, naming what to change; where the engine gives its own reason, it is passed on.
75
+ After any of them the microphone works again at once.
76
+ - Words the engine delivers twice (Safari can send everything said so far again) are written once.
60
77
  - It announces "Listening" and "Stopped listening" to screen readers. Pipeup holds announcements while you
61
78
  are writing, so they may be heard only after you finish the comment.
62
79