Esempio n. 1
0
 private void HandleOutputAudio(int index, TywiAudioStream stream, DeviceProfile device)
 {
     AudioModel audio = _service.GetAudio(device);
     foreach (var line in audio.files)
     {
         stream.QueueAudio(line.audioFile);
     }
 }
Esempio n. 2
0
 public void RegisterOutputAudio(TywiAudioStream stream)
 {
     _outputAudio = stream;
 }
Esempio n. 3
0
 private void HandleInputAudio(int index, TywiAudioStream stream, DeviceProfile device)
 {
     byte[] content = stream.ReadAudio();
     if (content != null && content.Length > 0)
     {
         PcmWrapper wrapper = new PcmWrapper(content, 16000, 1, 16);
         _service.PostAudio(wrapper.Encode(), device);
     }
 }
Esempio n. 4
0
 public void RegisterInputAudio(TywiAudioStream stream)
 {
     _inputAudio = stream;
 }