pvkoala 2.0.0__py3-none-any.whl → 2.0.2__py3-none-any.whl
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.
- pvkoala/_util.py +9 -4
- pvkoala/lib/raspberry-pi/cortex-a76/libpv_koala.so +0 -0
- pvkoala/lib/raspberry-pi/cortex-a76-aarch64/libpv_koala.so +0 -0
- {pvkoala-2.0.0.dist-info → pvkoala-2.0.2.dist-info}/METADATA +13 -15
- {pvkoala-2.0.0.dist-info → pvkoala-2.0.2.dist-info}/RECORD +7 -6
- {pvkoala-2.0.0.dist-info → pvkoala-2.0.2.dist-info}/WHEEL +1 -1
- pvkoala/lib/jetson/cortex-a57-aarch64/libpv_koala.so +0 -0
- {pvkoala-2.0.0.dist-info → pvkoala-2.0.2.dist-info}/top_level.txt +0 -0
pvkoala/_util.py
CHANGED
@@ -41,12 +41,19 @@ def _linux_machine() -> str:
|
|
41
41
|
return 'cortex-a57' + arch_info
|
42
42
|
elif '0xd08' == cpu_part:
|
43
43
|
return 'cortex-a72' + arch_info
|
44
|
+
elif "0xd0b" == cpu_part:
|
45
|
+
return "cortex-a76" + arch_info
|
44
46
|
else:
|
45
47
|
raise NotImplementedError("Unsupported CPU: `%s`." % cpu_part)
|
46
48
|
|
47
49
|
|
48
|
-
_RASPBERRY_PI_MACHINES = {
|
49
|
-
|
50
|
+
_RASPBERRY_PI_MACHINES = {
|
51
|
+
"cortex-a53",
|
52
|
+
"cortex-a72",
|
53
|
+
"cortex-a76",
|
54
|
+
"cortex-a53-aarch64",
|
55
|
+
"cortex-a72-aarch64",
|
56
|
+
"cortex-a76-aarch64"}
|
50
57
|
|
51
58
|
|
52
59
|
def default_library_path(relative: str = '') -> str:
|
@@ -59,8 +66,6 @@ def default_library_path(relative: str = '') -> str:
|
|
59
66
|
linux_machine = _linux_machine()
|
60
67
|
if linux_machine == 'x86_64':
|
61
68
|
return os.path.join(os.path.dirname(__file__), relative, 'lib/linux/x86_64/libpv_koala.so')
|
62
|
-
elif linux_machine in _JETSON_MACHINES:
|
63
|
-
return os.path.join(os.path.dirname(__file__), relative, 'lib/jetson/%s/libpv_koala.so' % linux_machine)
|
64
69
|
elif linux_machine in _RASPBERRY_PI_MACHINES:
|
65
70
|
return os.path.join(
|
66
71
|
os.path.dirname(__file__),
|
Binary file
|
Binary file
|
@@ -1,23 +1,23 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pvkoala
|
3
|
-
Version: 2.0.
|
3
|
+
Version: 2.0.2
|
4
4
|
Summary: Koala Noise Suppression Engine.
|
5
5
|
Home-page: https://github.com/Picovoice/koala
|
6
6
|
Author: Picovoice
|
7
7
|
Author-email: hello@picovoice.ai
|
8
|
-
License: UNKNOWN
|
9
8
|
Keywords: Noise Cancellation,Noise Suppression,Noise Removal,Speech Enhancement,Speech Denoising
|
10
|
-
Platform: UNKNOWN
|
11
9
|
Classifier: Development Status :: 5 - Production/Stable
|
12
10
|
Classifier: Intended Audience :: Developers
|
13
11
|
Classifier: License :: OSI Approved :: Apache Software License
|
14
12
|
Classifier: Operating System :: OS Independent
|
15
13
|
Classifier: Programming Language :: Python :: 3
|
16
14
|
Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
|
17
|
-
Requires-Python: >=3.
|
15
|
+
Requires-Python: >=3.8
|
18
16
|
Description-Content-Type: text/markdown
|
19
17
|
|
20
|
-
# Koala
|
18
|
+
# Koala Binding for Python
|
19
|
+
|
20
|
+
## Koala Noise Suppression Engine
|
21
21
|
|
22
22
|
Made in Vancouver, Canada by [Picovoice](https://picovoice.ai)
|
23
23
|
|
@@ -28,12 +28,12 @@ Koala is an on-device noise suppression engine. Koala is:
|
|
28
28
|
- Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64)
|
29
29
|
- Android and iOS
|
30
30
|
- Chrome, Safari, Firefox, and Edge
|
31
|
-
- Raspberry Pi (4,
|
31
|
+
- Raspberry Pi (3, 4, 5)
|
32
32
|
|
33
33
|
## Compatibility
|
34
34
|
|
35
|
-
- Python 3.
|
36
|
-
- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (4,
|
35
|
+
- Python 3.8 or higher
|
36
|
+
- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), and Raspberry Pi (3, 4, 5).
|
37
37
|
|
38
38
|
## Installation
|
39
39
|
|
@@ -43,7 +43,7 @@ pip3 install pvkoala
|
|
43
43
|
|
44
44
|
## AccessKey
|
45
45
|
|
46
|
-
Koala requires a valid Picovoice `AccessKey` at initialization. `AccessKey` acts as your credentials when using Koala
|
46
|
+
Koala requires a valid Picovoice `AccessKey` at initialization. `AccessKey` acts as your credentials when using Koala
|
47
47
|
SDKs. You can get your `AccessKey` for free. Make sure to keep your `AccessKey` secret.
|
48
48
|
Signup or Login to [Picovoice Console](https://console.picovoice.ai/) to get your `AccessKey`.
|
49
49
|
|
@@ -63,13 +63,13 @@ while True:
|
|
63
63
|
enhanced_audio = koala.process(get_next_audio_frame())
|
64
64
|
```
|
65
65
|
|
66
|
-
Replace `${ACCESS_KEY}` with yours obtained from [Picovoice Console](https://console.picovoice.ai/).
|
66
|
+
Replace `${ACCESS_KEY}` with yours obtained from [Picovoice Console](https://console.picovoice.ai/).
|
67
67
|
The input audio must come from a single-channel stream with integer 16-bit encoding. The sample rate must be identical
|
68
|
-
to `koala.sample_rate`. The stream must be split into *frames* with a fixed length in samples that can be obtained
|
68
|
+
to `koala.sample_rate`. The stream must be split into *frames* with a fixed length in samples that can be obtained
|
69
69
|
from `koala.frame_length`.
|
70
70
|
|
71
|
-
The output of `koala.process()` is a frame of enhanced audio with the same 16-bit integer encoding. The delay in
|
72
|
-
samples between the start time of the input frame and the start time of the output frame can be attained from
|
71
|
+
The output of `koala.process()` is a frame of enhanced audio with the same 16-bit integer encoding. The delay in
|
72
|
+
samples between the start time of the input frame and the start time of the output frame can be attained from
|
73
73
|
`koala.delay_sample`.
|
74
74
|
|
75
75
|
In case the next audio frame does not directly follow the previous one, call `koala.reset()`.
|
@@ -78,5 +78,3 @@ When done be sure to explicitly release the resources using `koala.delete()`.
|
|
78
78
|
## Demos
|
79
79
|
|
80
80
|
[pvkoalademo](https://pypi.org/project/pvkoalademo/) provides command-line utilities for processing audio using Koala.
|
81
|
-
|
82
|
-
|
@@ -2,9 +2,8 @@ pvkoala/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
2
2
|
pvkoala/__init__.py,sha256=46DQVzd7KMWWHnksLGV0vT6VPuZQe9Ivvdf2VQjLRhY,570
|
3
3
|
pvkoala/_factory.py,sha256=iZqM5lgr130Z_BjDgSi3maA-4dGO4J9abwUlNsX84Vo,1458
|
4
4
|
pvkoala/_koala.py,sha256=2NwR_XwjcllPA8FHTE4Q-ofp3X78YaCBGuEZNiafPdo,10689
|
5
|
-
pvkoala/_util.py,sha256=
|
5
|
+
pvkoala/_util.py,sha256=3j6Ly1gyIns0Q0DgxJCoYFU7Q-uolGSSp56ANRrZIMg,3059
|
6
6
|
pvkoala/lib/common/koala_params.pv,sha256=A_92Jxj36MvGe3oboq70wFubecCELhAkNZvTEJk6vfQ,4007743
|
7
|
-
pvkoala/lib/jetson/cortex-a57-aarch64/libpv_koala.so,sha256=R6ylMuZDy3GNJTpI_i4S2qesQk1_3GulWnl3ZhhKuKg,142656
|
8
7
|
pvkoala/lib/linux/x86_64/libpv_koala.so,sha256=9sE-zswQZEt6i2S1kFYgc9ypkWTFFTpWN6xkjJ7XMAk,163504
|
9
8
|
pvkoala/lib/mac/arm64/libpv_koala.dylib,sha256=5bswF2_yIr4dA6z9Ff8IIyQnVBFwX8eBD3Ioon2_VvU,203502
|
10
9
|
pvkoala/lib/mac/x86_64/libpv_koala.dylib,sha256=rg65W2omZecWDu6uFOe-iOyrCsMiGjOwNINBNAAFGAE,218256
|
@@ -12,8 +11,10 @@ pvkoala/lib/raspberry-pi/cortex-a53/libpv_koala.so,sha256=5IwELivbaznf4mn-uGO9FU
|
|
12
11
|
pvkoala/lib/raspberry-pi/cortex-a53-aarch64/libpv_koala.so,sha256=7PyFuqYL1XcvumWb0VDYzjLSUtrb2RlM0fcXXdrxrKw,142656
|
13
12
|
pvkoala/lib/raspberry-pi/cortex-a72/libpv_koala.so,sha256=0HpQr4t6IXiu_o-GS3mV5QczmgvrdYEVZ8zUM0bp-kA,133284
|
14
13
|
pvkoala/lib/raspberry-pi/cortex-a72-aarch64/libpv_koala.so,sha256=LjFS24G2TIaJtcpZoELC5-tvaw7QAAdOyM2UZJMHZrY,142656
|
14
|
+
pvkoala/lib/raspberry-pi/cortex-a76/libpv_koala.so,sha256=aWy_jgK5w_bJu8ypltm-G6thu085W1106FqTmxmv1Wk,133284
|
15
|
+
pvkoala/lib/raspberry-pi/cortex-a76-aarch64/libpv_koala.so,sha256=0avLzP8J8n0VsbJMqkR6CEbEH5s_ylv2OqilSLJkrfc,142656
|
15
16
|
pvkoala/lib/windows/amd64/libpv_koala.dll,sha256=h586bu40qiAw2FG06e9Eg1EX4cBZvS2jHodwvaEsNkI,282112
|
16
|
-
pvkoala-2.0.
|
17
|
-
pvkoala-2.0.
|
18
|
-
pvkoala-2.0.
|
19
|
-
pvkoala-2.0.
|
17
|
+
pvkoala-2.0.2.dist-info/METADATA,sha256=rq2dK7Lgn5ZqRU94hUUnOr93lCPXMv7GBSjxqdAfKYI,2735
|
18
|
+
pvkoala-2.0.2.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
19
|
+
pvkoala-2.0.2.dist-info/top_level.txt,sha256=Gb-hF6eAZIh7Bm1LfLuwsCQ_0y7FWSIuYSQX0p3T6No,8
|
20
|
+
pvkoala-2.0.2.dist-info/RECORD,,
|
Binary file
|
File without changes
|