Closed alishe79 closed 11 months ago
Hello @alishe79,
This library and Onvif in general does not have any direct support for sending audio to a device.
You can use easy_onvif
to get the RTSP audio stream uri, then you'll have to find another library to send or receive audio on that stream. Here's some sample code in c-sharp that i was able to find - how-to-send-audio-on-rtsp-backchannel
You might also be able to test sending an audio stream to the device with the command line tool - ffmpeg
Thank you @faithoflifedev
can i get the only audio by uint8list ? i wanna run audio byte array in audio Tflite model. how i can do this ?
@faithoflifedev my default class, use mobile microphone .
try {
classifier = AudioClassifier.createFromFileAndOptions(context, currentModel, options)
tensorAudio = classifier.createInputTensorAudio()
recorder = classifier.createAudioRecord()
startAudioClassification()
} catch (e: IllegalStateException) {
listener.onError(
"Audio Classifier failed to initialize. See error logs for details"
)
Log.e("AudioClassification", "TFLite failed to load with error: " + e.message)
}
I wanna send audio to unv or any vendor camera support play sound in camera. easy_onvif support this ? if yes, how can i stream audio to camera using easy_onvif ?