Add unit tests for:
- Resampled audio
- Long audio
- Long resampled audio
- Audio resampled with multiple silence-activity cycles
In all cases, make sure that the audio cannot be framed evenly (the last frame must not be less than the optimal_frame_size)
Add integration tests for the same scenarios, but capture raw audio from the respective websocket channel on the Asterisk side (probably using ARI application), to make sure we don't cut audio at the beginning and the end of audio chunks(containing multiple audio frames of optimal_frame_size), especially when resampling is done.
Add unit tests for:
In all cases, make sure that the audio cannot be framed evenly (the last frame must not be less than the
optimal_frame_size)Add integration tests for the same scenarios, but capture raw audio from the respective websocket channel on the Asterisk side (probably using ARI application), to make sure we don't cut audio at the beginning and the end of audio chunks(containing multiple audio frames of
optimal_frame_size), especially when resampling is done.