'read wav file occur UnicodeDecodeError
import os
import tensorflow as tf
import tensorflow_io as tfio
from matplotlib import pyplot as plt
CAPUCHIN_FILE=os.path.join('data','Parsed_Capuchinbird_Clips','XC3776-3.wav')
NOT_CAPUCHIN_FILE=os.path.join('data','Parsed_Not_Capuchinbird_Clips','afternoon-birds-song-in-forest-0.wav')
file_contents = tf.io.read_file(CAPUCHIN_FILE)
i read CAPUCHIN_FILE will occur UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa8 in position 89: invalid start byte
troubled for several days, and i not use english system will it affect?
i solve it, i change path like this: CAPUCHIN_FILE=os.path.join('C:\Audio_Classifier\data\Parsed_Capuchinbird_Clips\XC3776-0.wav')
NOT_CAPUCHIN_FILE=os.path.join('C:\Audio_Classifier\data\Parsed_Not_Capuchinbird_Clips\afternoon-birds-song-in-forest-0.wav')
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
