Mercurial > hg > auditok
comparison doc/examples.rst @ 454:f9d5eb9387d2
Fix code example
author | Amine Sehili <amine.sehili@gmail.com> |
---|---|
date | Tue, 03 Dec 2024 09:46:32 +0100 |
parents | 6cf3ea23fadb |
children |
comparison
equal
deleted
inserted
replaced
453:68f6b42e7a65 | 454:f9d5eb9387d2 |
---|---|
269 events.append(region) | 269 events.append(region) |
270 except KeyboardInterrupt: | 270 except KeyboardInterrupt: |
271 pass | 271 pass |
272 | 272 |
273 rec.rewind() | 273 rec.rewind() |
274 full_audio = load(rec.data, sr=sr, sw=sw, ch=ch) | 274 full_audio = auditok.load(rec.data, sr=sr, sw=sw, ch=ch) |
275 # alternatively you can use | 275 # alternatively you can use |
276 full_audio = auditok.AudioRegion(rec.data, sr, sw, ch) | 276 full_audio = auditok.AudioRegion(rec.data, sr, sw, ch) |
277 full_audio.play(progress_bar=True) | 277 full_audio.play(progress_bar=True) |
278 | 278 |
279 | 279 |