gunawanlg / voice-to-text-bahasa

Apache License 2.0
0 stars 0 forks source link

Fix issue #2 #30

Closed hariesramdhani closed 4 years ago

hariesramdhani commented 4 years ago

Issue #2 is fixed for now, along with this pull request the simple unit test that tells if the AudioNormalizer works normally or not is also pushed

hariesramdhani commented 4 years ago

The latest implementation will encode the filename to id and save it in a .json file for compressing the size of the string. The current AudioNormalizer object will return the dictionary of audio signals together with its corresponding ids to be fed to MFCCFeatureExtractor

gunawanlg commented 4 years ago

It seems there is a typo in here, AudioNormalzer should be AudioNormalizer.

class AudioNormalizerTest(unittest.TestCase):

    def setUp(self):
        self.output_dir = "test_data"
        self.X = ["INDASV_GEN_2.mp3"]
        self.X = [f"{self.output_dir}/{x}" for x in self.X]
        self.audio_normalizer = AudioNormalzer()

Request quickfix for this .Don't forget to turn the linter on :) @hariesramdhani