Created
October 3, 2021 13:05
-
-
Save iCorv/086d2f3753a76fe5c58a03b3e9a95519 to your computer and use it in GitHub Desktop.
Load LJ Speech Dataset and extract audio data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dataset, info = tfds.load( | |
'ljspeech', split='train', | |
download=True, with_info=True) | |
# transform int16 audio to float32 in [-1, 1] | |
dataset = dataset.map( | |
lambda example_dict: tf.cast( | |
example_dict['speech'], tf.float32 | |
) / 32767, | |
num_parallel_calls=AUTOTUNE) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment