This is a public domain speech dataset consisting of 13,100 short audio clips of a single speaker reading
passages from 7 non-fiction books in English. A transcription is provided for each clip. Clips vary in length
from 1 to 10 seconds and have a total length of approximately 24 hours.
Note that in order to limit the required storage for preparing this dataset, the audio
is stored in the .wav format and is not converted to a float32 array. To convert the audio
file to a float32 array, please make use of the .map() function as follows:
1import soundfile as sf
2
3def map_to_array(batch):
4 speech_array, _ = sf.read(batch["file"])
5 batch["speech"] = speech_array
6 return batch
7
8dataset = dataset.map(map_to_array, remove_columns=["file"])