コード例 #1
0
        public void ConvertAudioToTextForValidAudioFile()
        {
            //Action
            AudioFileDetails audioFile = new AudioFileDetails();

            audioFile.ApplicationStartupPath = @"D:\git-code\ImageProcessing\KantarImageProcessing\Test.ImageVideoGrabber\bin\Debug";
            audioFile.AudioDuration          = 10;
            audioFile.AudioFolderPath        = @"D:\git-code\ImageProcessing\KantarImageProcessing\Test.ImageVideoGrabber\bin\Debug\bin\video\";
            audioFile.FrameName = "audio";

            //Act
            AudioTextContent audioContent = _grab.ConvertAudioToText(audioFile);

            //Assert
            Assert.IsTrue(audioContent.AudioText.Trim().Length != 0, "Exception occurred in getting text from valid audio file");
        }