What's Changed
-
Added the ability to specify the size of the segment to be recognized.
segment_duration_seconds: The duration (in seconds) of the audio segment to analyze.
- Default: 10 seconds.
- If the audio file is longer than this duration, a centered segment of the specified duration is selected.
- Example: If the audio is 60 seconds andsegment_duration_seconds = 10
, the extracted segment will be from 25s to 35s.
- If the audio file is shorter than this duration, the entire file is used.
- Example: If the audio is 8 seconds andsegment_duration_seconds = 10
, the entire 8-second file will be processed.
- Audio is always converted to mono and down sampled to 16 kHz before analysis.
- This parameter determines the number of samples used for frequency analysis and fingerprint generation.
- https://github.com/shazamio/shazamio-core/blob/1803d73cac00c5a1a1903fa868e12c50d56d8ba4/shazamio_core/shazamio_core.py?plain=1#L29-L42
- https://github.com/shazamio/shazamio-core/blob/1803d73cac00c5a1a1903fa868e12c50d56d8ba4/shazamio_core/shazamio_core.py?plain=1#L64-L76
- https://github.com/shazamio/shazamio-core/blob/1803d73cac00c5a1a1903fa868e12c50d56d8ba4/shazamio_core/shazamio_core.py?plain=1#L78-L82
- https://github.com/shazamio/shazamio-core/blob/1803d73cac00c5a1a1903fa868e12c50d56d8ba4/shazamio_core/shazamio_core.py?plain=1#L95-L99
Also fixed builds:
- macos intel/arm
- aarch64
Full Changelog: 0.7.0...0.8.0