Skip to main content

Numpy-based NIST SPH audio-file reader

Project description

Latest PyPI version

Numpy-based NIST SPH audio-file reader. This is for use with NIST SPH audio-files, the most likely use being extracting the TEDLIUM_release2 audio into formats that standard tools can easily process.

Note that this library doesn’t require any external tools such as vox or gstreamer. It just loads the data into a numpy array and then lets you dump it back out to wave files.


from sphfile import SPHFile
sph =SPHFile(
# Note that the following loads the whole file into ram
print( sph.format )
# write out a wav file with content from 111.29 to 123.57 seconds
sph.write_wav( 'test.wav', 111.29, 123.57 )


  • numpy


MIT License (c) 2017 Mike C. Fletcher


sphfile was written by Mike C. Fletcher.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sphfile, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size sphfile-1.0.1.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page