File tree 2 files changed +15
-3
lines changed 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,26 @@ sphfile
5
5
:target: https://pypi.python.org/pypi/sphfile
6
6
:alt: Latest PyPI version
7
7
8
- Numpy-based NIST SPH audio-file reader
8
+ Numpy-based NIST SPH audio-file reader. This is for use
9
+ with NIST SPH audio-files, the most likely use being
10
+ extracting the TEDLIUM_release2 audio into formats that
11
+ standard tools can easily process.
12
+
13
+ Note that this library doesn't require any external tools
14
+ such as `vox ` or `gstreamer `. It just loads the data into a
15
+ numpy array and then lets you dump it back out to wave
16
+ files.
9
17
10
18
Usage
11
19
-----
12
20
13
21
.. code :: python
14
22
15
23
from sphfile import SPHFile
16
- sph = SPHFile( ' /var/datasets/TEDLIUM_release2/test/sph/JamesCameron_2010.sph' )
24
+ sph = SPHFile(
25
+ ' TEDLIUM_release2/test/sph/JamesCameron_2010.sph'
26
+ )
27
+ # Note that the following loads the whole file into ram
17
28
print ( sph.format )
18
29
# write out a wav file with content from 111.29 to 123.57 seconds
19
30
sph.write_wav( ' test.wav' , 111.29 , 123.57 )
@@ -26,7 +37,7 @@ Requirements
26
37
Licence
27
38
-------
28
39
29
- MIT
40
+ MIT License (c) 2017 Mike C. Fletcher
30
41
31
42
Authors
32
43
-------
Original file line number Diff line number Diff line change
1
+ numpy
You can’t perform that action at this time.
0 commit comments