aws / amazon-chime-sdk-ios

An iOS client library for integrating multi-party communications powered by the Amazon Chime service.
https://aws.amazon.com/chime/chime-sdk/
Apache License 2.0
144 stars 67 forks source link

Audio Cues not working #601

Open jp-hoehmann opened 1 year ago

jp-hoehmann commented 1 year ago

The SDK expects several files containing audio cues to be available and errors when they aren't (see logs). I have provided audio cues and they get parsed without error, but no audio cues are audible (and there is no further instructions in the documentation).

To Reproduce

  1. From the demo app
  2. Run the demo app
  3. Join a meeting
  4. Observe error output reproduced below
  5. Add WAV files with the below names to the project (location doesn't matter).
  6. Add the files to the target
  7. Make sure the files are copied into the bundle as part of the “Copy Bundle Resources” build step
  8. Run the app
  9. Join a meeting
  10. Observe Failure

Expected behavior

The audio cues get played at the correct times throughout the meeting lifecycle.

Observed behavior

The files evidently get parsed and the errors disappear, but the files are seemingly never used for anything.

Logs

[ERROR] MeetingModel - audio cues: others_joined.wav err: 7
[ERROR] MeetingModel - audio cues: others_left.wav err: 7
[ERROR] MeetingModel - audio cues: reconnecting.wav err: 7
[ERROR] MeetingModel - audio cues: reconnected.wav err: 7
[ERROR] MeetingModel - audio cues: reconnect_failed.wav err: 7
[ERROR] MeetingModel - audio cues: rumble_strips.wav err: 7
[ERROR] MeetingModel - audio cues: first_caller.wav err: 7
[ERROR] MeetingModel - audio cues: remote_muted.wav err: 7
[ERROR] MeetingModel - audio cues: call_waiting.wav err: 7
[ERROR] MeetingModel - audio cues: ring_back.wav err: 7
[ERROR] MeetingModel - audio cues: first_caller_beep.wav err: 7
[ERROR] MeetingModel - audio cues: welcome.wav err: 7

Test environment Info

Additional context

The WAV-files I tried are RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono. I have tried both 44100 Hz and 48000 Hz sample rate. The WAV files need to be mono (adding stereo WAV files will result in an error, confirming that the files are actually parsed) and may not have any RIFF chunks before the fmt chunk (many applications add a JUNK chunk for alignment, which is allowed in the spec, but trips up whatever amazon-chime-sdk-ios uses internally to parse these files).

hokyungh commented 1 year ago

Thanks for reporting. These are benign messages, but definitely looks like an error that needs to be removed from the code. I'll mark it as bug.