sonusai 0.15.4__tar.gz → 0.15.5__tar.gz
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.
- {sonusai-0.15.4 → sonusai-0.15.5}/PKG-INFO +5 -5
- {sonusai-0.15.4 → sonusai-0.15.5}/pyproject.toml +6 -6
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/onnx_predict.py +3 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/README.rst +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/__init__.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/aawscd_probwrite.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/calc_metric_spenh.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/data/__init__.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/data/genmixdb.yml +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/data/speech_ma01_01.wav +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/data/whitenoise.wav +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/data_generator/__init__.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/data_generator/dataset_from_mixdb.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/data_generator/keras_from_mixdb.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/data_generator/torch_from_mixdb.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/doc/__init__.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/doc/doc.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/doc.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/evaluate.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/genft.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/genmix.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/genmixdb.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/gentcst.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/keras_onnx.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/keras_predict.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/keras_train.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/lsdb.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/main.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/metrics/__init__.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/metrics/calc_class_weights.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/metrics/calc_optimal_thresholds.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/metrics/calc_pcm.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/metrics/calc_pesq.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/metrics/calc_sa_sdr.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/metrics/calc_sample_weights.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/metrics/calc_wer.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/metrics/calc_wsdr.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/metrics/class_summary.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/metrics/confusion_matrix_summary.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/metrics/one_hot.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/metrics/snr_summary.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/__init__.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/audio.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/augmentation.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/class_count.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/config.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/constants.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/datatypes.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/eq_rule_is_valid.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/feature.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/generation.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/helpers.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/log_duration_and_sizes.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/mapped_snr_f.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/mixdb.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/soundfile_audio.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/sox_audio.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/sox_augmentation.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/spectral_mask.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/target_class_balancing.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/targets.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/tokenized_shell_vars.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/torchaudio_audio.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/torchaudio_augmentation.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/truth.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/truth_functions/__init__.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/truth_functions/crm.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/truth_functions/data.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/truth_functions/energy.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/truth_functions/file.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/truth_functions/phoneme.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/truth_functions/sed.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mixture/truth_functions/target.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mkmanifest.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/mkwav.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/plot.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/post_spenh_targetf.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/queries/__init__.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/queries/queries.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/torchl_onnx.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/torchl_predict.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/torchl_train.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/tplot.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/__init__.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/asl_p56.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/asr.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/asr_functions/__init__.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/asr_functions/aaware_whisper.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/asr_functions/aixplain_whisper.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/asr_functions/data.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/asr_functions/deepgram.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/asr_functions/fastwhisper.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/asr_functions/google.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/asr_functions/whisper.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/asr_manifest_functions/__init__.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/asr_manifest_functions/data.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/asr_manifest_functions/librispeech.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/asr_manifest_functions/vctk_noisy_speech.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/braced_glob.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/calculate_input_shape.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/convert_string_to_number.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/create_ts_name.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/dataclass_from_dict.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/db.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/energy_f.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/engineering_number.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/get_frames_per_batch.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/get_label_names.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/grouper.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/human_readable_size.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/keras_utils.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/max_text_width.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/numeric_conversion.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/onnx_utils.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/parallel.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/print_mixture_details.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/ranges.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/read_mixture_data.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/read_predict_data.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/reshape.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/seconds_to_hms.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/stacked_complex.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/stratified_shuffle_split.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/trim_docstring.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/wave.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/utils/yes_or_no.py +0 -0
- {sonusai-0.15.4 → sonusai-0.15.5}/sonusai/vars.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: sonusai
|
3
|
-
Version: 0.15.
|
3
|
+
Version: 0.15.5
|
4
4
|
Summary: Framework for building deep neural network models for sound, speech, and voice AI
|
5
5
|
Home-page: https://aaware.com
|
6
6
|
License: GPL-3.0-only
|
@@ -17,12 +17,12 @@ Classifier: Programming Language :: Python :: 3.11
|
|
17
17
|
Requires-Dist: PyYAML (>=6.0.1,<7.0.0)
|
18
18
|
Requires-Dist: aixplain (>=0.2.6,<0.3.0)
|
19
19
|
Requires-Dist: dataclasses-json (>=0.6.1,<0.7.0)
|
20
|
-
Requires-Dist: deepgram-sdk (>=
|
20
|
+
Requires-Dist: deepgram-sdk (>=3.0.0,<4.0.0)
|
21
21
|
Requires-Dist: docopt (>=0.6.2,<0.7.0)
|
22
22
|
Requires-Dist: faster-whisper (>=0.10.0,<0.11.0)
|
23
23
|
Requires-Dist: ffmpeg (>=1.4,<2.0)
|
24
24
|
Requires-Dist: greenlet (>=3.0.1,<4.0.0)
|
25
|
-
Requires-Dist: grpcio (==1.
|
25
|
+
Requires-Dist: grpcio (==1.60.0)
|
26
26
|
Requires-Dist: jiwer (>=3.0.3,<4.0.0)
|
27
27
|
Requires-Dist: keras-tuner (>=1.4.5,<2.0.0)
|
28
28
|
Requires-Dist: librosa (>=0.10.1,<0.11.0)
|
@@ -35,7 +35,7 @@ Requires-Dist: pandas (>=2.1.1,<3.0.0)
|
|
35
35
|
Requires-Dist: pesq (>=0.0.4,<0.0.5)
|
36
36
|
Requires-Dist: pyaaware (>=1.5.3,<2.0.0)
|
37
37
|
Requires-Dist: pydub (>=0.25.1,<0.26.0)
|
38
|
-
Requires-Dist: pystoi (>=0.
|
38
|
+
Requires-Dist: pystoi (>=0.4.0,<0.5.0)
|
39
39
|
Requires-Dist: python-magic (>=0.4.27,<0.5.0)
|
40
40
|
Requires-Dist: requests (>=2.31.0,<3.0.0)
|
41
41
|
Requires-Dist: resampy (>=0.4.2,<0.5.0)
|
@@ -45,7 +45,7 @@ Requires-Dist: sh (>=2.0.6,<3.0.0)
|
|
45
45
|
Requires-Dist: soundfile (>=0.12.1,<0.13.0)
|
46
46
|
Requires-Dist: sox (>=1.4.1,<2.0.0)
|
47
47
|
Requires-Dist: speechrecognition (>=3.10.0,<4.0.0)
|
48
|
-
Requires-Dist: tensorflow (>=2.
|
48
|
+
Requires-Dist: tensorflow (>=2.15.0,<3.0.0)
|
49
49
|
Requires-Dist: tensorflow-addons (>=0.23.0,<0.24.0)
|
50
50
|
Requires-Dist: tf2onnx (>=1.15.1,<2.0.0)
|
51
51
|
Requires-Dist: torch (>=2.1.0,<3.0.0)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "sonusai"
|
3
|
-
version = "0.15.
|
3
|
+
version = "0.15.5"
|
4
4
|
description = "Framework for building deep neural network models for sound, speech, and voice AI"
|
5
5
|
authors = ["Chris Eddington <chris@aaware.com>", "Jason Calderwood <jason@aaware.com>"]
|
6
6
|
maintainers = ["Chris Eddington <chris@aaware.com>", "Jason Calderwood <jason@aaware.com>"]
|
@@ -17,20 +17,20 @@ aawscd_probwrite = 'sonusai.aawscd_probwrite:main'
|
|
17
17
|
PyYAML = "^6.0.1"
|
18
18
|
aixplain = "^0.2.6"
|
19
19
|
dataclasses-json = "^0.6.1"
|
20
|
-
deepgram-sdk = "^
|
20
|
+
deepgram-sdk = "^3.0.0"
|
21
21
|
docopt = "^0.6.2"
|
22
22
|
#einops = "^0"
|
23
23
|
faster-whisper = "^0.10.0"
|
24
24
|
ffmpeg = "^1.4"
|
25
25
|
greenlet = "^3.0.1"
|
26
|
-
grpcio = "1.
|
26
|
+
grpcio = "1.60.0"
|
27
27
|
jiwer = "^3.0.3"
|
28
28
|
keras-tuner = "^1.4.5"
|
29
29
|
librosa = "^0.10.1"
|
30
30
|
lightning = "^2.1.0"
|
31
31
|
matplotlib = "^3.8.0"
|
32
32
|
onnx = "1.14.1"
|
33
|
-
#onnxruntime-gpu = "^1"
|
33
|
+
#onnxruntime-gpu = "^1.16.1"
|
34
34
|
onnxruntime = "^1.16.1"
|
35
35
|
#openai-whisper = "^20231117"
|
36
36
|
paho-mqtt = "^1.6.1"
|
@@ -38,7 +38,7 @@ pandas = "^2.1.1"
|
|
38
38
|
pesq = "^0.0.4"
|
39
39
|
pyaaware = "^1.5.3"
|
40
40
|
pydub = "^0.25.1"
|
41
|
-
pystoi = "^0.
|
41
|
+
pystoi = "^0.4.0"
|
42
42
|
python = ">=3.9,<3.12"
|
43
43
|
python-magic = "^0.4.27"
|
44
44
|
requests = "^2.31.0"
|
@@ -49,7 +49,7 @@ sh = "^2.0.6"
|
|
49
49
|
soundfile = "^0.12.1"
|
50
50
|
sox = "^1.4.1"
|
51
51
|
speechrecognition = "^3.10.0"
|
52
|
-
tensorflow = "^2.
|
52
|
+
tensorflow = "^2.15.0"
|
53
53
|
tensorflow-addons = "^0.23.0"
|
54
54
|
tf2onnx = "^1.15.1"
|
55
55
|
torch = "^2.1.0"
|
@@ -223,6 +223,9 @@ def pad_and_predict(feature: Feature,
|
|
223
223
|
model = rt.InferenceSession(model_name, providers=['CPUExecutionProvider'])
|
224
224
|
|
225
225
|
predict_arr = np.vstack(predict)
|
226
|
+
# Combine [sequences, batch_size, ...] into [frames, ...]
|
227
|
+
predict_shape = predict_arr.shape
|
228
|
+
predict_arr = np.reshape(predict_arr, [predict_shape[0] * predict_shape[1], *predict_shape[2:]])
|
226
229
|
predict_arr, _ = reshape_outputs(predict=predict_arr, timesteps=timesteps)
|
227
230
|
predict_arr = predict_arr[:frames, :]
|
228
231
|
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|