adbfc815b277264d4ae8dbf447a5bb767de48f00,binding/python/test_porcupine.py,PorcupineTestCase,test_process,#PorcupineTestCase#,21

Before Change


class PorcupineTestCase(unittest.TestCase):
    def test_process(self):
        extension = self._keyword_file_extension()
        keyword_file_path = self._abs_path("../../resources/keyword_files/%s/porcupine_%s.ppn" % (extension, extension))

        porcupine = Porcupine(
            library_path=self._library_path(),

After Change


            sensitivity=0.5)

        audio, sample_rate = soundfile.read(
            os.path.join(os.path.dirname(__file__), "../../resources/audio_samples/porcupine.wav"),
            dtype="int16")
        assert sample_rate == porcupine.sample_rate
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: Picovoice/porcupine
Commit Name: adbfc815b277264d4ae8dbf447a5bb767de48f00
Time: 2020-01-29
Author: alireza@picovoice.ai
File Name: binding/python/test_porcupine.py
Class Name: PorcupineTestCase
Method Name: test_process


Project Name: Hironsan/anago
Commit Name: 56ff7de2acb143c2e29640d7639fd356e72547ff
Time: 2017-08-10
Author: light.tree.1.13@gmail.com
File Name: tests/train_test.py
Class Name: TrainTest
Method Name: test_train


Project Name: Picovoice/porcupine
Commit Name: adbfc815b277264d4ae8dbf447a5bb767de48f00
Time: 2020-01-29
Author: alireza@picovoice.ai
File Name: binding/python/test_porcupine.py
Class Name: PorcupineTestCase
Method Name: test_process_multiple