modusa 0.3.75__py3-none-any.whl → 0.3.76__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.
- modusa/__init__.py +1 -1
- modusa/tools/__init__.py +1 -0
- modusa/tools/audio_saver.py +30 -0
- {modusa-0.3.75.dist-info → modusa-0.3.76.dist-info}/METADATA +1 -1
- {modusa-0.3.75.dist-info → modusa-0.3.76.dist-info}/RECORD +8 -7
- {modusa-0.3.75.dist-info → modusa-0.3.76.dist-info}/WHEEL +0 -0
- {modusa-0.3.75.dist-info → modusa-0.3.76.dist-info}/entry_points.txt +0 -0
- {modusa-0.3.75.dist-info → modusa-0.3.76.dist-info}/licenses/LICENSE.md +0 -0
modusa/__init__.py
CHANGED
|
@@ -4,6 +4,6 @@ from modusa.utils import excp, config
|
|
|
4
4
|
from modusa.tools import plot_dist, fig
|
|
5
5
|
#=====
|
|
6
6
|
|
|
7
|
-
from modusa.tools import play, convert, record
|
|
7
|
+
from modusa.tools import play, convert, record, save
|
|
8
8
|
from modusa.tools import download
|
|
9
9
|
from modusa.tools import load, load_ann
|
modusa/tools/__init__.py
CHANGED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
|
|
3
|
+
#---------------------------------
|
|
4
|
+
# Author: Ankit Anand
|
|
5
|
+
# Date: 13/09/25
|
|
6
|
+
# Email: ankit0.anand0@gmail.com
|
|
7
|
+
#---------------------------------
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def save(y, sr, out_path):
|
|
11
|
+
"""
|
|
12
|
+
Saves an array as an audio file.
|
|
13
|
+
|
|
14
|
+
Parameters
|
|
15
|
+
----------
|
|
16
|
+
y: ndarray
|
|
17
|
+
- Audio signal array.
|
|
18
|
+
sr: number [> 0]
|
|
19
|
+
- Sampling rate of the audio signal.
|
|
20
|
+
out_path: str
|
|
21
|
+
- Output path of the audio file.
|
|
22
|
+
|
|
23
|
+
Returns
|
|
24
|
+
-------
|
|
25
|
+
None
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
import soundfile as sf
|
|
29
|
+
|
|
30
|
+
sf.write(file=out_path, data=y, samplerate=sr)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
modusa-0.3.
|
|
2
|
-
modusa-0.3.
|
|
3
|
-
modusa-0.3.
|
|
4
|
-
modusa-0.3.
|
|
1
|
+
modusa-0.3.76.dist-info/METADATA,sha256=AJ__r4w4LMn5cMuEOcfytGNfDx7M7SN447y5fw0PHIw,1436
|
|
2
|
+
modusa-0.3.76.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
|
|
3
|
+
modusa-0.3.76.dist-info/entry_points.txt,sha256=fmKpleVXj6CdaBVL14WoEy6xx7JQCs85jvzwTi3lePM,73
|
|
4
|
+
modusa-0.3.76.dist-info/licenses/LICENSE.md,sha256=JTaXAjx5awk76VArKCx5dUW8vmLEWsL_ZlR7-umaHbA,1078
|
|
5
5
|
modusa/.DS_Store,sha256=_gm6qJREwfMi8dE7n5S89_RG46u5t3xHyD-smNhtNoM,6148
|
|
6
|
-
modusa/__init__.py,sha256=
|
|
6
|
+
modusa/__init__.py,sha256=NePOWbyJftN9eKV6VEzS8QBMY5SCym9DzUCrVcVZ7kY,283
|
|
7
7
|
modusa/config.py,sha256=bTqK4t00FZqERVITrxW_q284aDDJAa9aMSfFknfR-oU,280
|
|
8
8
|
modusa/decorators.py,sha256=8zeNX_wE37O6Vp0ysR4-WCZaEL8mq8dyCF_I5DHOzks,5905
|
|
9
9
|
modusa/devtools/generate_docs_source.py,sha256=UDflHsk-Yh9-3YJTVBzKL32y8hcxiRgAlFEBTMiDqwM,3301
|
|
@@ -41,13 +41,14 @@ modusa/models/t_ax.py,sha256=ZUhvZPUW1TkdZYuUd6Ucm-vsv0JqtZ9yEe3ab67Ma6w,8022
|
|
|
41
41
|
modusa/models/tds.py,sha256=FAGfibjyyE_lkEuQp-vSCuqQnopOjmy_IXqUjRlg9kc,11677
|
|
42
42
|
modusa/plugins/__init__.py,sha256=r1Bf5mnrVKRIwxboutY1iGzDy4EPQhqpk1kSW7iJj_Q,54
|
|
43
43
|
modusa/plugins/base.py,sha256=Bh_1Bja7fOymFsCgwhXDbV6ys3D8muNrPwrfDrG_G_A,2382
|
|
44
|
-
modusa/tools/__init__.py,sha256=
|
|
44
|
+
modusa/tools/__init__.py,sha256=V2Zr75ZsKLQAokWUsxgK2nfuzYR4HLzIRLMHpCnu7_4,325
|
|
45
45
|
modusa/tools/_plotter_old.py,sha256=KGow7mihA2H1WNq7s5bpivhCgGo2qVIeDaO6iabpsrg,19294
|
|
46
46
|
modusa/tools/ann_loader.py,sha256=GWiX7v4CxyAECthmtBAaSMMqsjo1YaVfRA9u-CtTTFM,1718
|
|
47
47
|
modusa/tools/audio_converter.py,sha256=415qBoPm2sBIuBSI7m1XBKm0AbmVmPydIPPr-uO8D3c,1778
|
|
48
48
|
modusa/tools/audio_loader.py,sha256=LEknkmc09SoUGN80-Uy59sVyeC6_55tD3a6ICbvaqWQ,2768
|
|
49
49
|
modusa/tools/audio_player.py,sha256=GP04TWW4jBwQBjANkfR_cJtEy7cIhvbu8RTwnf9hD6E,2817
|
|
50
50
|
modusa/tools/audio_recorder.py,sha256=d2fVt0Sd2tlBdb2WlUs60K4N23zuxM3KUpQqX0ifPi8,2769
|
|
51
|
+
modusa/tools/audio_saver.py,sha256=ldzfr_AydsHTnKbxmBLJblN-hLzTmOlppOm306xI4Ug,510
|
|
51
52
|
modusa/tools/base.py,sha256=C0ESJ0mIfjjRlAkRbSetNtMoOfS6IrHBjexRp3l_Mh4,1293
|
|
52
53
|
modusa/tools/math_ops.py,sha256=ZZ7U4DgqT7cOeE7_Lzi_Qq-48WYfwR9_osbZwTmE9eg,8690
|
|
53
54
|
modusa/tools/plotter.py,sha256=00sXkQyH_LNroxG_C3LAkvpRQsC3Yk-c8j99g36JzJ8,23583
|
|
@@ -59,4 +60,4 @@ modusa/utils/excp.py,sha256=L9vhaGjKpv9viJYdmC9n5ndmk2GVbUBuFyZyhAQZmWY,906
|
|
|
59
60
|
modusa/utils/logger.py,sha256=K0rsnObeNKCxlNeSnVnJeRhgfmob6riB2uyU7h3dDmA,571
|
|
60
61
|
modusa/utils/np_func_cat.py,sha256=TyIFgRc6bARRMDnZxlVURO5Z0I-GWhxRONYyIv-Vwxs,1007
|
|
61
62
|
modusa/utils/plot.py,sha256=s_vNdxvKfwxEngvJPgrF1PcmxZNnNaaXPViHWjyjJ-c,5335
|
|
62
|
-
modusa-0.3.
|
|
63
|
+
modusa-0.3.76.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|