18 lines
373 B
Python
18 lines
373 B
Python
import unittest
|
|
|
|
from src.transcriber import Transcriber
|
|
|
|
|
|
class TranscriberTest(unittest.TestCase):
|
|
def setUp(self):
|
|
self.transcriber = Transcriber()
|
|
|
|
def test_transcribe(self):
|
|
wav_file = "<Your wav file>"
|
|
result = self.transcriber.transcribe(wav_file)
|
|
self.assertIsNotNone(result)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|