6 Commits

Author SHA1 Message Date
S.Mohammad Emami Razavi
192d3d6842
Update split_silence.py
changes will resolve an error raised for some media files having bad and unprintable metadata

```
Traceback (most recent call last):
  File "/code/main.py", line 285, in <module>
    transform(item)
  File "/code/main.py", line 214, in transform
    chunk_dic = split_audio_and_chunk_to_dic(in_filename=f'./rx/some_file',
  File "/code/split_silence.py", line 313, in split_audio_and_chunk_to_dic
    chunk_times = get_chunk_times(in_filename, silence_threshold, silence_duration, start_time, end_time)
  File "/code/split_silence.py", line 149, in get_chunk_times
    output = p.communicate()[1].decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa9 in position 1888: invalid start byte
```
2024-10-30 18:10:38 +03:30
Karthikeyan Singaravelan
6189cd6861
Import ABC from collections.abc for Python 3.9+ compatibility (#330)
* Import ABC from collections.abc instead of collections for Python 3.9 compatibility.

* Fix deprecation warnings due to invalid escape sequences.

* Support Python 3.10

Co-authored-by: Karl Kroening <karlk@kralnet.us>
2022-03-07 01:46:52 -08:00
Karl Kroening
3cf993e910 Add filter operator 2018-07-13 04:43:56 +02:00
Karl Kroening
f5f7ee2073 Improve logging in split_silence; add transcribe example 2018-01-07 04:43:05 -08:00
Karl Kroening
ad58a38d59 Finalize split_silence 2018-01-07 03:43:20 -08:00
Karl Kroening
4311e33859 Add split_silence example 2018-01-07 03:32:05 -08:00