Changeset 4677


Ignore:
Timestamp:
08/10/12 09:37:41 (10 months ago)
Author:
avneesh-singh
Message:

on the fly phrase detection hooked up with recorder

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Obi-OnTheFlyOperations/Obi/RecordingSession.cs

    r4664 r4677  
    8282            mRecordingUpdateTimer.Interval = 1000; 
    8383            m_Settings = settings; 
     84            mRecorder.PcmDataBufferAvailable += new AudioLib.AudioRecorder.PcmDataBufferAvailableHandler(DetectPhrasesOnTheFly); 
    8485        } 
    8586 
     
    250251        private int m_PhDetectionMemStreamPosition; 
    251252        private long m_PhDetectorBytesRecorded; 
     253 
     254        private void DetectPhrasesOnTheFly(object sender, AudioLib.AudioRecorder.PcmDataBufferAvailableEventArgs e) 
     255        { 
     256            ApplyPhraseDetectionOnTheFly(e); 
     257        } 
    252258 
    253259        private void ApplyPhraseDetectionOnTheFly(AudioLib.AudioRecorder.PcmDataBufferAvailableEventArgs e) 
     
    308314                        Console.WriteLine("timing list is null "); 
    309315                    } 
     316                     
    310317                } 
    311318 
     
    349356 
    350357            } 
    351         } 
    352  
     358 
     359        } 
     360 
     361        private void MarkDetectedPhrases(object sender, PhraseEventArgs e) 
     362        { 
     363            double phraseMarkedTime = e.Time; 
     364        } 
    353365    } 
    354366} 
Note: See TracChangeset for help on using the changeset viewer.