You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 11, 2025. It is now read-only.
1.**Evaluate:** The Picovoice SDK is a cross-platform library for adding voice to anything. It includes some
38
-
pre-trained speech models. The SDK is licensed under Apache 2.0 and available on GitHub to encourage independent
39
-
benchmarking and integration testing. You are empowered to make a data-driven decision.
38
+
pre-trained speech models. The SDK is licensed under Apache 2.0 and available on GitHub to encourage independent
39
+
benchmarking and integration testing. You are empowered to make a data-driven decision.
40
40
41
41
2.**Design:**[Picovoice Console](https://picovoice.ai/console/) is a cloud-based platform for designing voice
42
-
interfaces and training speech models, all within your web browser. No machine learning skills are required. Simply
43
-
describe what you need with text and export trained models.
42
+
interfaces and training speech models, all within your web browser. No machine learning skills are required. Simply
43
+
describe what you need with text and export trained models.
44
44
45
45
3.**Develop:** Exported models can run on Picovoice SDK without requiring constant connectivity. The SDK runs on a wide
46
-
range of platforms and supports a large number of frameworks. The Picovoice Console and Picovoice SDK enable you to
47
-
design, build and iterate fast.
46
+
range of platforms and supports a large number of frameworks. The Picovoice Console and Picovoice SDK enable you to
47
+
design, build and iterate fast.
48
48
49
49
4.**Deploy:** Deploy at scale without having to maintain complex cloud infrastructure. Avoid unbounded cloud fees,
50
-
limitations, and control imposed by big tech.
50
+
limitations, and control imposed by big tech.
51
51
52
52
## Platform Features
53
53
@@ -66,11 +66,11 @@ platform.
66
66
67
67
## License & Terms
68
68
69
-
The Picovoice SDK is free and licensed under Apache 2.0 including the models released within. [Picovoice Console]((https://picovoice.ai/console/)) offers
69
+
The Picovoice SDK is free and licensed under Apache 2.0 including the models released within. [Picovoice Console](https://picovoice.ai/console/) offers
70
70
two types of subscriptions: Personal and Enterprise. Personal accounts can train custom speech models that run on the
71
71
Picovoice SDK, subject to limitations and strictly for non-commercial purposes. Personal accounts empower researchers,
72
72
hobbyists, and tinkerers to experiment. Enterprise accounts can unlock all capabilities of Picovoice Console, are
73
-
permitted for use in commercial settings, and have a path to graduate to commercial distribution[<sup>*</sup>](https://picovoice.ai/pricing/).
73
+
permitted for use in commercial settings, and have a path to graduate to commercial distribution[<sup>\*</sup>](https://picovoice.ai/pricing/).
74
74
75
75
## Table of Contents
76
76
@@ -304,7 +304,7 @@ both of which [run offline in the browser](https://picovoice.ai/blog/offline-voi
304
304
305
305
### Python
306
306
307
-
Install the package
307
+
Install the package:
308
308
309
309
```bash
310
310
pip3 install picovoice
@@ -323,11 +323,9 @@ def wake_word_callback():
323
323
context_path =...
324
324
325
325
definference_callback(inference):
326
-
# `inference` exposes three immutable fields:
327
-
# (1) `is_understood`
328
-
# (2) `intent`
329
-
# (3) `slots`
330
-
pass
326
+
print(inference.is_understood)
327
+
print(inference.intent)
328
+
print(inference.slots)
331
329
332
330
handle = Picovoice(
333
331
keyword_path=keyword_path,
@@ -336,15 +334,15 @@ handle = Picovoice(
336
334
inference_callback=inference_callback)
337
335
```
338
336
339
-
`handle` is an instance of Picovoice runtime engine that detects utterances of wake phrase defined in the file located at
337
+
`handle` is an instance of the Picovoice runtime engine. It detects utterances of wake phrase defined in the file located at
340
338
`keyword_path`. Upon detection of wake word it starts inferring user's intent from the follow-on voice command within
341
-
the context defined by the file located at `context_path`. `keyword_path` is the absolute path to
342
-
[Porcupine wake word engine](https://github.com/Picovoice/porcupine) keyword file (with `.ppn`suffix).
343
-
`context_path` is the absolute path to [Rhino Speech-to-Intent engine](https://github.com/Picovoice/rhino) context file
344
-
(with `.rhn`suffix). `wake_word_callback` is invoked upon the detection of wake phrase and `inference_callback` is
339
+
the context defined by the file located at `context_path`. `keyword_path` is the absolute path to the
340
+
[Porcupine wake word engine](https://github.com/Picovoice/porcupine) keyword file (with `.ppn`extension).
341
+
`context_path` is the absolute path to the [Rhino Speech-to-Intent engine](https://github.com/Picovoice/rhino) context file
342
+
(with `.rhn`extension). `wake_word_callback` is invoked upon the detection of wake phrase and `inference_callback` is
345
343
invoked upon completion of follow-on voice command inference.
346
344
347
-
When instantiated, valid sample rate can be obtained via `handle.sample_rate`. Expected number of audio samples per
345
+
When instantiated, the required rate can be obtained via `handle.sample_rate`. Expected number of audio samples per
348
346
frame is `handle.frame_length`. The engine accepts 16-bit linearly-encoded PCM and operates on single-channel audio. The
349
347
set of supported commands can be retrieved (in YAML format) via `handle.context_info`.
350
348
@@ -356,11 +354,7 @@ while True:
356
354
handle.process(get_next_audio_frame())
357
355
```
358
356
359
-
When done resources have to be released explicitly
360
-
361
-
```python
362
-
handle.delete()
363
-
```
357
+
When done, resources have to be released explicitly `handle.delete()`.
0 commit comments