Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio samples are rendered and in increasing presentation time order #205

Open
yanj-github opened this issue Nov 7, 2024 · 1 comment
Open

Comments

@yanj-github
Copy link
Contributor

After further analysis, the Observation Framework accurately reported failures in the starting and ending audio samples in the following observation.

[OF] When examined as a continuous sequence of timestamped audio samples of the audio stream, the 20ms test audio samples shall be a complete rendering of the source audio track and are rendered in increasing presentation time order.

e.g: Failed segments are:
Segment(0.0ms) Segment(20.0ms) - at the beginning
Segment(29920.0ms) Segment(29940.0ms) Segment(29960.0ms) Segment(29980.0ms) - at the end

To assist with debugging, you can use audio analysis tools to measure the duration of the presented audio. You'll notice that it is shorter than the expected duration of 30 seconds.

I don’t have the right knowledge in this area. Could someone please kindly look into this further?
Possible causes might include:

  • Issues in the test implementation
  • Device-related problems
  • Change from TS audio to WAVE playback
  • Tolerance at either end being set to 0, which may be too strict
@yanj-github
Copy link
Contributor Author

yanj-github commented Nov 7, 2024

This is how I debug this issue, hope that it will help.
Debugging Process:

  • Measure the start time of the audio: Audio started at 9.627s.
  • Measure the end time of the audio: Audio ended at 39.504s.
  • Expected playback duration: 30 seconds.
  • Detected playback duration: 39.504s - 9.627s = 29.877s.
  • Discrepancy: The actual playback duration is 123 milliseconds shorter than expected (29.877s vs. 30s).
  • Audio measurement frequency: Audio is measured every 20 milliseconds.
  • Mismatch analysis: The discrepancy of 123ms corresponds to 6 missing audio segments (123ms ÷ 20ms = 6 segments).

image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant