pvkoala 1.0.1__tar.gz → 2.0.0__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {pvkoala-1.0.1 → pvkoala-2.0.0}/MANIFEST.in +1 -1
- pvkoala-2.0.0/PKG-INFO +80 -0
- {pvkoala-1.0.1 → pvkoala-2.0.0}/pvkoala/_koala.py +67 -6
- pvkoala-2.0.0/pvkoala/lib/common/koala_params.pv +0 -0
- pvkoala-2.0.0/pvkoala/lib/jetson/cortex-a57-aarch64/libpv_koala.so +0 -0
- pvkoala-2.0.0/pvkoala/lib/linux/x86_64/libpv_koala.so +0 -0
- {pvkoala-1.0.1 → pvkoala-2.0.0}/pvkoala/lib/mac/arm64/libpv_koala.dylib +0 -0
- {pvkoala-1.0.1 → pvkoala-2.0.0}/pvkoala/lib/mac/x86_64/libpv_koala.dylib +0 -0
- pvkoala-2.0.0/pvkoala/lib/raspberry-pi/cortex-a53/libpv_koala.so +0 -0
- pvkoala-2.0.0/pvkoala/lib/raspberry-pi/cortex-a53-aarch64/libpv_koala.so +0 -0
- pvkoala-2.0.0/pvkoala/lib/raspberry-pi/cortex-a72/libpv_koala.so +0 -0
- pvkoala-2.0.0/pvkoala/lib/raspberry-pi/cortex-a72-aarch64/libpv_koala.so +0 -0
- pvkoala-2.0.0/pvkoala/lib/windows/amd64/libpv_koala.dll +0 -0
- pvkoala-2.0.0/pvkoala.egg-info/PKG-INFO +80 -0
- {pvkoala-1.0.1 → pvkoala-2.0.0}/setup.py +2 -2
- pvkoala-1.0.1/PKG-INFO +0 -82
- pvkoala-1.0.1/pvkoala/lib/common/koala_params.pv +0 -0
- pvkoala-1.0.1/pvkoala/lib/jetson/cortex-a57-aarch64/libpv_koala.so +0 -0
- pvkoala-1.0.1/pvkoala/lib/linux/x86_64/libpv_koala.so +0 -0
- pvkoala-1.0.1/pvkoala/lib/raspberry-pi/cortex-a53/libpv_koala.so +0 -0
- pvkoala-1.0.1/pvkoala/lib/raspberry-pi/cortex-a53-aarch64/libpv_koala.so +0 -0
- pvkoala-1.0.1/pvkoala/lib/raspberry-pi/cortex-a72/libpv_koala.so +0 -0
- pvkoala-1.0.1/pvkoala/lib/raspberry-pi/cortex-a72-aarch64/libpv_koala.so +0 -0
- pvkoala-1.0.1/pvkoala/lib/windows/amd64/libpv_koala.dll +0 -0
- pvkoala-1.0.1/pvkoala.egg-info/PKG-INFO +0 -82
- {pvkoala-1.0.1 → pvkoala-2.0.0}/README.md +0 -0
- {pvkoala-1.0.1 → pvkoala-2.0.0}/pvkoala/LICENSE +0 -0
- {pvkoala-1.0.1 → pvkoala-2.0.0}/pvkoala/__init__.py +0 -0
- {pvkoala-1.0.1 → pvkoala-2.0.0}/pvkoala/_factory.py +0 -0
- {pvkoala-1.0.1 → pvkoala-2.0.0}/pvkoala/_util.py +0 -0
- {pvkoala-1.0.1 → pvkoala-2.0.0}/pvkoala.egg-info/SOURCES.txt +0 -0
- {pvkoala-1.0.1 → pvkoala-2.0.0}/pvkoala.egg-info/dependency_links.txt +0 -0
- {pvkoala-1.0.1 → pvkoala-2.0.0}/pvkoala.egg-info/top_level.txt +0 -0
- {pvkoala-1.0.1 → pvkoala-2.0.0}/setup.cfg +0 -0
pvkoala-2.0.0/PKG-INFO
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
Metadata-Version: 2.1
|
2
|
+
Name: pvkoala
|
3
|
+
Version: 2.0.0
|
4
|
+
Summary: Koala Noise Suppression Engine.
|
5
|
+
Home-page: https://github.com/Picovoice/koala
|
6
|
+
Author: Picovoice
|
7
|
+
Author-email: hello@picovoice.ai
|
8
|
+
License: UNKNOWN
|
9
|
+
Description: # Koala Noise Suppression Engine
|
10
|
+
|
11
|
+
Made in Vancouver, Canada by [Picovoice](https://picovoice.ai)
|
12
|
+
|
13
|
+
Koala is an on-device noise suppression engine. Koala is:
|
14
|
+
|
15
|
+
- Private; All voice processing runs locally.
|
16
|
+
- Cross-Platform:
|
17
|
+
- Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64)
|
18
|
+
- Android and iOS
|
19
|
+
- Chrome, Safari, Firefox, and Edge
|
20
|
+
- Raspberry Pi (4, 3) and NVIDIA Jetson Nano
|
21
|
+
|
22
|
+
## Compatibility
|
23
|
+
|
24
|
+
- Python 3.5 or higher
|
25
|
+
- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (4, 3), and NVIDIA Jetson Nano.
|
26
|
+
|
27
|
+
## Installation
|
28
|
+
|
29
|
+
```console
|
30
|
+
pip3 install pvkoala
|
31
|
+
```
|
32
|
+
|
33
|
+
## AccessKey
|
34
|
+
|
35
|
+
Koala requires a valid Picovoice `AccessKey` at initialization. `AccessKey` acts as your credentials when using Koala
|
36
|
+
SDKs. You can get your `AccessKey` for free. Make sure to keep your `AccessKey` secret.
|
37
|
+
Signup or Login to [Picovoice Console](https://console.picovoice.ai/) to get your `AccessKey`.
|
38
|
+
|
39
|
+
### Usage
|
40
|
+
|
41
|
+
Create an instance of the engine and enhance audio:
|
42
|
+
|
43
|
+
```python
|
44
|
+
import pvkoala
|
45
|
+
|
46
|
+
koala = pvkoala.create(access_key='${ACCESS_KEY}')
|
47
|
+
|
48
|
+
def get_next_audio_frame():
|
49
|
+
pass
|
50
|
+
|
51
|
+
while True:
|
52
|
+
enhanced_audio = koala.process(get_next_audio_frame())
|
53
|
+
```
|
54
|
+
|
55
|
+
Replace `${ACCESS_KEY}` with yours obtained from [Picovoice Console](https://console.picovoice.ai/).
|
56
|
+
The input audio must come from a single-channel stream with integer 16-bit encoding. The sample rate must be identical
|
57
|
+
to `koala.sample_rate`. The stream must be split into *frames* with a fixed length in samples that can be obtained
|
58
|
+
from `koala.frame_length`.
|
59
|
+
|
60
|
+
The output of `koala.process()` is a frame of enhanced audio with the same 16-bit integer encoding. The delay in
|
61
|
+
samples between the start time of the input frame and the start time of the output frame can be attained from
|
62
|
+
`koala.delay_sample`.
|
63
|
+
|
64
|
+
In case the next audio frame does not directly follow the previous one, call `koala.reset()`.
|
65
|
+
When done be sure to explicitly release the resources using `koala.delete()`.
|
66
|
+
|
67
|
+
## Demos
|
68
|
+
|
69
|
+
[pvkoalademo](https://pypi.org/project/pvkoalademo/) provides command-line utilities for processing audio using Koala.
|
70
|
+
|
71
|
+
Keywords: Noise Cancellation,Noise Suppression,Noise Removal,Speech Enhancement,Speech Denoising
|
72
|
+
Platform: UNKNOWN
|
73
|
+
Classifier: Development Status :: 5 - Production/Stable
|
74
|
+
Classifier: Intended Audience :: Developers
|
75
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
76
|
+
Classifier: Operating System :: OS Independent
|
77
|
+
Classifier: Programming Language :: Python :: 3
|
78
|
+
Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
|
79
|
+
Requires-Python: >=3.5
|
80
|
+
Description-Content-Type: text/markdown
|
@@ -16,7 +16,27 @@ from typing import Sequence
|
|
16
16
|
|
17
17
|
|
18
18
|
class KoalaError(Exception):
|
19
|
-
|
19
|
+
def __init__(self, message: str = '', message_stack: Sequence[str] = None):
|
20
|
+
super().__init__(message)
|
21
|
+
|
22
|
+
self._message = message
|
23
|
+
self._message_stack = list() if message_stack is None else message_stack
|
24
|
+
|
25
|
+
def __str__(self):
|
26
|
+
message = self._message
|
27
|
+
if len(self._message_stack) > 0:
|
28
|
+
message += ':'
|
29
|
+
for i in range(len(self._message_stack)):
|
30
|
+
message += '\n [%d] %s' % (i, self._message_stack[i])
|
31
|
+
return message
|
32
|
+
|
33
|
+
@property
|
34
|
+
def message(self) -> str:
|
35
|
+
return self._message
|
36
|
+
|
37
|
+
@property
|
38
|
+
def message_stack(self) -> Sequence[str]:
|
39
|
+
return self._message_stack
|
20
40
|
|
21
41
|
|
22
42
|
class KoalaMemoryError(KoalaError):
|
@@ -123,15 +143,34 @@ class Koala(object):
|
|
123
143
|
|
124
144
|
library = cdll.LoadLibrary(library_path)
|
125
145
|
|
146
|
+
set_sdk_func = library.pv_set_sdk
|
147
|
+
set_sdk_func.argtypes = [c_char_p]
|
148
|
+
set_sdk_func.restype = None
|
149
|
+
|
150
|
+
set_sdk_func('python'.encode('utf-8'))
|
151
|
+
|
152
|
+
self._get_error_stack_func = library.pv_get_error_stack
|
153
|
+
self._get_error_stack_func.argtypes = [POINTER(POINTER(c_char_p)), POINTER(c_int)]
|
154
|
+
self._get_error_stack_func.restype = self.PicovoiceStatuses
|
155
|
+
|
156
|
+
self._free_error_stack_func = library.pv_free_error_stack
|
157
|
+
self._free_error_stack_func.argtypes = [POINTER(c_char_p)]
|
158
|
+
self._free_error_stack_func.restype = None
|
159
|
+
|
126
160
|
init_func = library.pv_koala_init
|
127
161
|
init_func.argtypes = [c_char_p, c_char_p, POINTER(POINTER(self.CKoala))]
|
128
162
|
init_func.restype = self.PicovoiceStatuses
|
129
163
|
|
130
164
|
self._handle = POINTER(self.CKoala)()
|
131
165
|
|
132
|
-
status = init_func(
|
166
|
+
status = init_func(
|
167
|
+
access_key.encode(),
|
168
|
+
model_path.encode(),
|
169
|
+
byref(self._handle))
|
133
170
|
if status is not self.PicovoiceStatuses.SUCCESS:
|
134
|
-
raise self._PICOVOICE_STATUS_TO_EXCEPTION[status](
|
171
|
+
raise self._PICOVOICE_STATUS_TO_EXCEPTION[status](
|
172
|
+
message='Initialization failed',
|
173
|
+
message_stack=self._get_error_stack())
|
135
174
|
|
136
175
|
self._delete_func = library.pv_koala_delete
|
137
176
|
self._delete_func.argtypes = [POINTER(self.CKoala)]
|
@@ -144,7 +183,10 @@ class Koala(object):
|
|
144
183
|
status = delay_sample_func(self._handle, delay_sample)
|
145
184
|
if status is not self.PicovoiceStatuses.SUCCESS:
|
146
185
|
self.delete()
|
147
|
-
raise self._PICOVOICE_STATUS_TO_EXCEPTION[status](
|
186
|
+
raise self._PICOVOICE_STATUS_TO_EXCEPTION[status](
|
187
|
+
message='Failed to get delay samples',
|
188
|
+
message_stack=self._get_error_stack())
|
189
|
+
|
148
190
|
self._delay_sample = delay_sample.value
|
149
191
|
|
150
192
|
self._process_func = library.pv_koala_process
|
@@ -193,7 +235,9 @@ class Koala(object):
|
|
193
235
|
|
194
236
|
status = self._process_func(self._handle, pcm, enhanced_pcm)
|
195
237
|
if status is not self.PicovoiceStatuses.SUCCESS:
|
196
|
-
raise self._PICOVOICE_STATUS_TO_EXCEPTION[status](
|
238
|
+
raise self._PICOVOICE_STATUS_TO_EXCEPTION[status](
|
239
|
+
message='Processing failed',
|
240
|
+
message_stack=self._get_error_stack())
|
197
241
|
|
198
242
|
# noinspection PyTypeChecker
|
199
243
|
return list(enhanced_pcm)
|
@@ -206,7 +250,9 @@ class Koala(object):
|
|
206
250
|
|
207
251
|
status = self._reset_func(self._handle)
|
208
252
|
if status is not self.PicovoiceStatuses.SUCCESS:
|
209
|
-
raise self._PICOVOICE_STATUS_TO_EXCEPTION[status](
|
253
|
+
raise self._PICOVOICE_STATUS_TO_EXCEPTION[status](
|
254
|
+
message='Reset failed',
|
255
|
+
message_stack=self._get_error_stack())
|
210
256
|
|
211
257
|
def delete(self) -> None:
|
212
258
|
"""Releases resources acquired by Koala."""
|
@@ -239,6 +285,21 @@ class Koala(object):
|
|
239
285
|
|
240
286
|
return self._version
|
241
287
|
|
288
|
+
def _get_error_stack(self) -> Sequence[str]:
|
289
|
+
message_stack_ref = POINTER(c_char_p)()
|
290
|
+
message_stack_depth = c_int()
|
291
|
+
status = self._get_error_stack_func(byref(message_stack_ref), byref(message_stack_depth))
|
292
|
+
if status is not self.PicovoiceStatuses.SUCCESS:
|
293
|
+
raise self._PICOVOICE_STATUS_TO_EXCEPTION[status](message='Unable to get Koala error state')
|
294
|
+
|
295
|
+
message_stack = list()
|
296
|
+
for i in range(message_stack_depth.value):
|
297
|
+
message_stack.append(message_stack_ref[i].decode('utf-8'))
|
298
|
+
|
299
|
+
self._free_error_stack_func(message_stack_ref)
|
300
|
+
|
301
|
+
return message_stack
|
302
|
+
|
242
303
|
|
243
304
|
__all__ = [
|
244
305
|
'Koala',
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,80 @@
|
|
1
|
+
Metadata-Version: 2.1
|
2
|
+
Name: pvkoala
|
3
|
+
Version: 2.0.0
|
4
|
+
Summary: Koala Noise Suppression Engine.
|
5
|
+
Home-page: https://github.com/Picovoice/koala
|
6
|
+
Author: Picovoice
|
7
|
+
Author-email: hello@picovoice.ai
|
8
|
+
License: UNKNOWN
|
9
|
+
Description: # Koala Noise Suppression Engine
|
10
|
+
|
11
|
+
Made in Vancouver, Canada by [Picovoice](https://picovoice.ai)
|
12
|
+
|
13
|
+
Koala is an on-device noise suppression engine. Koala is:
|
14
|
+
|
15
|
+
- Private; All voice processing runs locally.
|
16
|
+
- Cross-Platform:
|
17
|
+
- Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64)
|
18
|
+
- Android and iOS
|
19
|
+
- Chrome, Safari, Firefox, and Edge
|
20
|
+
- Raspberry Pi (4, 3) and NVIDIA Jetson Nano
|
21
|
+
|
22
|
+
## Compatibility
|
23
|
+
|
24
|
+
- Python 3.5 or higher
|
25
|
+
- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (4, 3), and NVIDIA Jetson Nano.
|
26
|
+
|
27
|
+
## Installation
|
28
|
+
|
29
|
+
```console
|
30
|
+
pip3 install pvkoala
|
31
|
+
```
|
32
|
+
|
33
|
+
## AccessKey
|
34
|
+
|
35
|
+
Koala requires a valid Picovoice `AccessKey` at initialization. `AccessKey` acts as your credentials when using Koala
|
36
|
+
SDKs. You can get your `AccessKey` for free. Make sure to keep your `AccessKey` secret.
|
37
|
+
Signup or Login to [Picovoice Console](https://console.picovoice.ai/) to get your `AccessKey`.
|
38
|
+
|
39
|
+
### Usage
|
40
|
+
|
41
|
+
Create an instance of the engine and enhance audio:
|
42
|
+
|
43
|
+
```python
|
44
|
+
import pvkoala
|
45
|
+
|
46
|
+
koala = pvkoala.create(access_key='${ACCESS_KEY}')
|
47
|
+
|
48
|
+
def get_next_audio_frame():
|
49
|
+
pass
|
50
|
+
|
51
|
+
while True:
|
52
|
+
enhanced_audio = koala.process(get_next_audio_frame())
|
53
|
+
```
|
54
|
+
|
55
|
+
Replace `${ACCESS_KEY}` with yours obtained from [Picovoice Console](https://console.picovoice.ai/).
|
56
|
+
The input audio must come from a single-channel stream with integer 16-bit encoding. The sample rate must be identical
|
57
|
+
to `koala.sample_rate`. The stream must be split into *frames* with a fixed length in samples that can be obtained
|
58
|
+
from `koala.frame_length`.
|
59
|
+
|
60
|
+
The output of `koala.process()` is a frame of enhanced audio with the same 16-bit integer encoding. The delay in
|
61
|
+
samples between the start time of the input frame and the start time of the output frame can be attained from
|
62
|
+
`koala.delay_sample`.
|
63
|
+
|
64
|
+
In case the next audio frame does not directly follow the previous one, call `koala.reset()`.
|
65
|
+
When done be sure to explicitly release the resources using `koala.delete()`.
|
66
|
+
|
67
|
+
## Demos
|
68
|
+
|
69
|
+
[pvkoalademo](https://pypi.org/project/pvkoalademo/) provides command-line utilities for processing audio using Koala.
|
70
|
+
|
71
|
+
Keywords: Noise Cancellation,Noise Suppression,Noise Removal,Speech Enhancement,Speech Denoising
|
72
|
+
Platform: UNKNOWN
|
73
|
+
Classifier: Development Status :: 5 - Production/Stable
|
74
|
+
Classifier: Intended Audience :: Developers
|
75
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
76
|
+
Classifier: Operating System :: OS Independent
|
77
|
+
Classifier: Programming Language :: Python :: 3
|
78
|
+
Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
|
79
|
+
Requires-Python: >=3.5
|
80
|
+
Description-Content-Type: text/markdown
|
@@ -32,7 +32,7 @@ for platform in INCLUDE_LIBS:
|
|
32
32
|
shutil.copytree(
|
33
33
|
os.path.join(os.path.dirname(__file__), '../../lib', platform),
|
34
34
|
os.path.join(package_folder, 'lib', platform))
|
35
|
-
manifest_in += "recursive-include pvkoala/lib
|
35
|
+
manifest_in += "recursive-include pvkoala/lib *\n"
|
36
36
|
|
37
37
|
with open(os.path.join(os.path.dirname(__file__), 'MANIFEST.in'), 'w') as f:
|
38
38
|
f.write(manifest_in)
|
@@ -42,7 +42,7 @@ with open(os.path.join(os.path.dirname(__file__), 'README.md'), 'r') as f:
|
|
42
42
|
|
43
43
|
setuptools.setup(
|
44
44
|
name="pvkoala",
|
45
|
-
version="
|
45
|
+
version="2.0.0",
|
46
46
|
author="Picovoice",
|
47
47
|
author_email="hello@picovoice.ai",
|
48
48
|
description="Koala Noise Suppression Engine.",
|
pvkoala-1.0.1/PKG-INFO
DELETED
@@ -1,82 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.1
|
2
|
-
Name: pvkoala
|
3
|
-
Version: 1.0.1
|
4
|
-
Summary: Koala Noise Suppression Engine.
|
5
|
-
Home-page: https://github.com/Picovoice/koala
|
6
|
-
Author: Picovoice
|
7
|
-
Author-email: hello@picovoice.ai
|
8
|
-
License: UNKNOWN
|
9
|
-
Keywords: Noise Cancellation,Noise Suppression,Noise Removal,Speech Enhancement,Speech Denoising
|
10
|
-
Platform: UNKNOWN
|
11
|
-
Classifier: Development Status :: 5 - Production/Stable
|
12
|
-
Classifier: Intended Audience :: Developers
|
13
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
14
|
-
Classifier: Operating System :: OS Independent
|
15
|
-
Classifier: Programming Language :: Python :: 3
|
16
|
-
Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
|
17
|
-
Requires-Python: >=3.5
|
18
|
-
Description-Content-Type: text/markdown
|
19
|
-
|
20
|
-
# Koala Noise Suppression Engine
|
21
|
-
|
22
|
-
Made in Vancouver, Canada by [Picovoice](https://picovoice.ai)
|
23
|
-
|
24
|
-
Koala is an on-device noise suppression engine. Koala is:
|
25
|
-
|
26
|
-
- Private; All voice processing runs locally.
|
27
|
-
- Cross-Platform:
|
28
|
-
- Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64)
|
29
|
-
- Android and iOS
|
30
|
-
- Chrome, Safari, Firefox, and Edge
|
31
|
-
- Raspberry Pi (4, 3) and NVIDIA Jetson Nano
|
32
|
-
|
33
|
-
## Compatibility
|
34
|
-
|
35
|
-
- Python 3.5 or higher
|
36
|
-
- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (4, 3), and NVIDIA Jetson Nano.
|
37
|
-
|
38
|
-
## Installation
|
39
|
-
|
40
|
-
```console
|
41
|
-
pip3 install pvkoala
|
42
|
-
```
|
43
|
-
|
44
|
-
## AccessKey
|
45
|
-
|
46
|
-
Koala requires a valid Picovoice `AccessKey` at initialization. `AccessKey` acts as your credentials when using Koala
|
47
|
-
SDKs. You can get your `AccessKey` for free. Make sure to keep your `AccessKey` secret.
|
48
|
-
Signup or Login to [Picovoice Console](https://console.picovoice.ai/) to get your `AccessKey`.
|
49
|
-
|
50
|
-
### Usage
|
51
|
-
|
52
|
-
Create an instance of the engine and enhance audio:
|
53
|
-
|
54
|
-
```python
|
55
|
-
import pvkoala
|
56
|
-
|
57
|
-
koala = pvkoala.create(access_key='${ACCESS_KEY}')
|
58
|
-
|
59
|
-
def get_next_audio_frame():
|
60
|
-
pass
|
61
|
-
|
62
|
-
while True:
|
63
|
-
enhanced_audio = koala.process(get_next_audio_frame())
|
64
|
-
```
|
65
|
-
|
66
|
-
Replace `${ACCESS_KEY}` with yours obtained from [Picovoice Console](https://console.picovoice.ai/).
|
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
|
69
|
-
from `koala.frame_length`.
|
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
|
73
|
-
`koala.delay_sample`.
|
74
|
-
|
75
|
-
In case the next audio frame does not directly follow the previous one, call `koala.reset()`.
|
76
|
-
When done be sure to explicitly release the resources using `koala.delete()`.
|
77
|
-
|
78
|
-
## Demos
|
79
|
-
|
80
|
-
[pvkoalademo](https://pypi.org/project/pvkoalademo/) provides command-line utilities for processing audio using Koala.
|
81
|
-
|
82
|
-
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,82 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.1
|
2
|
-
Name: pvkoala
|
3
|
-
Version: 1.0.1
|
4
|
-
Summary: Koala Noise Suppression Engine.
|
5
|
-
Home-page: https://github.com/Picovoice/koala
|
6
|
-
Author: Picovoice
|
7
|
-
Author-email: hello@picovoice.ai
|
8
|
-
License: UNKNOWN
|
9
|
-
Keywords: Noise Cancellation,Noise Suppression,Noise Removal,Speech Enhancement,Speech Denoising
|
10
|
-
Platform: UNKNOWN
|
11
|
-
Classifier: Development Status :: 5 - Production/Stable
|
12
|
-
Classifier: Intended Audience :: Developers
|
13
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
14
|
-
Classifier: Operating System :: OS Independent
|
15
|
-
Classifier: Programming Language :: Python :: 3
|
16
|
-
Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
|
17
|
-
Requires-Python: >=3.5
|
18
|
-
Description-Content-Type: text/markdown
|
19
|
-
|
20
|
-
# Koala Noise Suppression Engine
|
21
|
-
|
22
|
-
Made in Vancouver, Canada by [Picovoice](https://picovoice.ai)
|
23
|
-
|
24
|
-
Koala is an on-device noise suppression engine. Koala is:
|
25
|
-
|
26
|
-
- Private; All voice processing runs locally.
|
27
|
-
- Cross-Platform:
|
28
|
-
- Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64)
|
29
|
-
- Android and iOS
|
30
|
-
- Chrome, Safari, Firefox, and Edge
|
31
|
-
- Raspberry Pi (4, 3) and NVIDIA Jetson Nano
|
32
|
-
|
33
|
-
## Compatibility
|
34
|
-
|
35
|
-
- Python 3.5 or higher
|
36
|
-
- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (4, 3), and NVIDIA Jetson Nano.
|
37
|
-
|
38
|
-
## Installation
|
39
|
-
|
40
|
-
```console
|
41
|
-
pip3 install pvkoala
|
42
|
-
```
|
43
|
-
|
44
|
-
## AccessKey
|
45
|
-
|
46
|
-
Koala requires a valid Picovoice `AccessKey` at initialization. `AccessKey` acts as your credentials when using Koala
|
47
|
-
SDKs. You can get your `AccessKey` for free. Make sure to keep your `AccessKey` secret.
|
48
|
-
Signup or Login to [Picovoice Console](https://console.picovoice.ai/) to get your `AccessKey`.
|
49
|
-
|
50
|
-
### Usage
|
51
|
-
|
52
|
-
Create an instance of the engine and enhance audio:
|
53
|
-
|
54
|
-
```python
|
55
|
-
import pvkoala
|
56
|
-
|
57
|
-
koala = pvkoala.create(access_key='${ACCESS_KEY}')
|
58
|
-
|
59
|
-
def get_next_audio_frame():
|
60
|
-
pass
|
61
|
-
|
62
|
-
while True:
|
63
|
-
enhanced_audio = koala.process(get_next_audio_frame())
|
64
|
-
```
|
65
|
-
|
66
|
-
Replace `${ACCESS_KEY}` with yours obtained from [Picovoice Console](https://console.picovoice.ai/).
|
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
|
69
|
-
from `koala.frame_length`.
|
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
|
73
|
-
`koala.delay_sample`.
|
74
|
-
|
75
|
-
In case the next audio frame does not directly follow the previous one, call `koala.reset()`.
|
76
|
-
When done be sure to explicitly release the resources using `koala.delete()`.
|
77
|
-
|
78
|
-
## Demos
|
79
|
-
|
80
|
-
[pvkoalademo](https://pypi.org/project/pvkoalademo/) provides command-line utilities for processing audio using Koala.
|
81
|
-
|
82
|
-
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|