dora-microphone 0.3.10rc1__py3-none-any.whl → 0.3.11__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.
@@ -1,3 +1,5 @@
1
+ """TODO: Add docstring."""
2
+
1
3
  import os
2
4
 
3
5
  # Define the path to the README file relative to the package directory
dora_microphone/main.py CHANGED
@@ -1,3 +1,5 @@
1
+ """TODO: Add docstring."""
2
+
1
3
  import os
2
4
  import time as tm
3
5
 
@@ -12,6 +14,7 @@ SAMPLE_RATE = int(os.getenv("SAMPLE_RATE", "16000"))
12
14
 
13
15
  def main():
14
16
  # Initialize buffer and recording flag
17
+ """TODO: Add docstring."""
15
18
  buffer = []
16
19
  start_recording_time = tm.time()
17
20
  node = Node()
@@ -20,6 +23,7 @@ def main():
20
23
  finished = False
21
24
 
22
25
  def callback(indata, frames, time, status):
26
+ """TODO: Add docstring."""
23
27
  nonlocal buffer, node, start_recording_time, finished
24
28
 
25
29
  if tm.time() - start_recording_time > MAX_DURATION:
@@ -35,7 +39,10 @@ def main():
35
39
 
36
40
  # Start recording
37
41
  with sd.InputStream(
38
- callback=callback, dtype=np.int16, channels=1, samplerate=SAMPLE_RATE,
42
+ callback=callback,
43
+ dtype=np.int16,
44
+ channels=1,
45
+ samplerate=SAMPLE_RATE,
39
46
  ):
40
47
  while not finished:
41
48
  sd.sleep(1000)
@@ -1,12 +1,12 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: dora-microphone
3
- Version: 0.3.10rc1
3
+ Version: 0.3.11
4
4
  Summary: Dora dora-microphone
5
5
  Author-email: Haixuan Xavier Tao <tao.xavier@outlook.com>, Enzo Le Van <dev@enzo-le-van.fr>
6
6
  License: MIT
7
7
  Requires-Python: >=3.8
8
8
  Description-Content-Type: text/markdown
9
- Requires-Dist: dora-rs>=0.3.6
9
+ Requires-Dist: dora-rs>=0.3.9
10
10
  Requires-Dist: numpy<2.0.0
11
11
  Requires-Dist: pyarrow>=5.0.0
12
12
  Requires-Dist: sounddevice>=0.4.6
@@ -0,0 +1,7 @@
1
+ dora_microphone/__init__.py,sha256=tF7WHhHiDweUUzyHsbmFe_ktphE08aA5j33E4ja1udA,381
2
+ dora_microphone/main.py,sha256=zb_mxUaBRfyEFQZnnq77B6oyj-JHQ4Ey5ieoyyBWeTU,1289
3
+ dora_microphone-0.3.11.dist-info/METADATA,sha256=MbVpfmK8bL0bBWnuj2YQVX6mwEruoxUuBZhqwEDf65k,1739
4
+ dora_microphone-0.3.11.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
5
+ dora_microphone-0.3.11.dist-info/entry_points.txt,sha256=DNnYiww0gxWJRDlgg-aQ3sj5Oo61siIvyAvjd0YMYeE,62
6
+ dora_microphone-0.3.11.dist-info/top_level.txt,sha256=AEkdHx6GH6vSz7Sc-KBOY9GbElitzMn5mORnK7GA7P8,16
7
+ dora_microphone-0.3.11.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: setuptools (78.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,7 +0,0 @@
1
- dora_microphone/__init__.py,sha256=HuSK3dnyI9Pb5QAuaKFwQQ3J5SIZnLcKHPJO0norGzc,353
2
- dora_microphone/main.py,sha256=HFVMjg2Rnf-1HvzlgLSx_xfCPlyyujCvo8maIw9NMGk,1171
3
- dora_microphone-0.3.10rc1.dist-info/METADATA,sha256=5uwtspK-rwwmxJ235xBxJDn8AZ9CugiuQH_OAhoN7e4,1742
4
- dora_microphone-0.3.10rc1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
5
- dora_microphone-0.3.10rc1.dist-info/entry_points.txt,sha256=DNnYiww0gxWJRDlgg-aQ3sj5Oo61siIvyAvjd0YMYeE,62
6
- dora_microphone-0.3.10rc1.dist-info/top_level.txt,sha256=AEkdHx6GH6vSz7Sc-KBOY9GbElitzMn5mORnK7GA7P8,16
7
- dora_microphone-0.3.10rc1.dist-info/RECORD,,