Skip to content

Commit

Permalink
Added python 3.5 fix to write string
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanNaren committed Mar 23, 2017
1 parent 1b49d34 commit 8fb9381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def create_manifest(data_path, tag, ordered=True):
for wav_path in file_paths:
transcript_path = wav_path.replace('/wav/', '/txt/').replace('.wav', '.txt')
sample = os.path.abspath(wav_path) + ',' + os.path.abspath(transcript_path) + '\n'
file.write(sample)
file.write(sample.encode('utf-8'))
counter += 1
_update_progress(counter / float(size))
print('\n')
Expand Down

0 comments on commit 8fb9381

Please sign in to comment.