-
Notifications
You must be signed in to change notification settings - Fork 3
Audio injection #381
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
Open
tungmhoang
wants to merge
10
commits into
main
Choose a base branch
from
audio-injection
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Audio injection #381
Changes from 8 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
a48245d
KOB-35537 prep work for audio injection
tungmhoang 6d3e00f
KOB-35537 continue adding audio injection guide for manual session
tungmhoang bb8c2e5
KOB-35537 continue adding audio injection guide for manual session
tungmhoang 1c801ce
KOB-35537 continue adding audio injection guide for manual session
tungmhoang 40c016b
KOB-35537 continue adding audio injection guide for manual session
tungmhoang ef89dac
KOB-35537 finished audio injection
tungmhoang 7842c1c
KOB-35537 address feedbacks
tungmhoang 9a04152
KOB-35537 address feedbacks
tungmhoang ddb4c8a
KOB-35537 address feedbacks
tungmhoang 834fecc
KOB-35537 add limitations
tungmhoang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+32.3 KB
docs/modules/manual-testing/images/bluetooth-audio-injection-closeup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+58.4 KB
docs/modules/manual-testing/images/bluetooth-audio-injection-empty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+47.7 KB
docs/modules/manual-testing/images/bluetooth-audio-injection-uploaded.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+33.3 KB
docs/modules/manual-testing/images/bluetooth-audio-session-overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-9.18 KB
(84%)
docs/modules/manual-testing/images/device-controls-context3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-70.9 KB
(11%)
docs/modules/manual-testing/images/image-injection-closeup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
91 changes: 91 additions & 0 deletions
91
docs/modules/manual-testing/pages/local-devices/inject-audio.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,91 @@ | ||
| = Inject audio during a manual session (Beta) | ||
| :navtitle: Inject audio (Beta) | ||
|
|
||
| Learn how to inject an audio file directly into a connected device during a manual session to test recording apps, voice calls, and audio handling. | ||
|
|
||
| == Prerequisites | ||
|
|
||
| * A private device with bluetooth audio enabled running in *Standard mode*. | ||
|
|
||
| [IMPORTANT] | ||
| Bluetooth audio requires an additional _bluetooth-bridge_ server to enable. Contact Kobiton support for more details. | ||
|
|
||
| * A valid audio file that meets the required format and size. | ||
|
|
||
| === Supported audio format | ||
|
|
||
| |=== | ||
| | Requirement | Value | ||
|
|
||
| | Container | WAV (PCM 16-bit), OGG, or MP3 | ||
| | Sample Rate | 8 kHz | ||
| | Bit Depth | 16-bit | ||
| | Channels | mono | ||
| | Max File Size | 30 MB | ||
| |=== | ||
|
|
||
| == Inject audio | ||
|
|
||
| * In the *Device List*, choose a device marked with the microphone icon and launch a *Manual Session*. | ||
|
|
||
| image:bluetooth-audio-devices.png[width=768px,alt="Filtered device list showing Pixel 7 Pro and Pixel 7 with audio capability icons"] | ||
|
|
||
| * In the session, open *Inject Media* and select the *Audio Injection* tab. You’ll see an empty state inviting you to *click* or *drag-and-drop* a file. The *Inject* button is disabled until a file is uploaded. | ||
|
|
||
| image:bluetooth-audio-injection-empty.png[width=768px,alt="Audio injection screen showing no file selected before injection"] | ||
|
|
||
| * Select the upload area to open your system file browser (e.g., *Downloads*). Highlight your WAV file (e.g., `sample.wav`) and select *Open*. | ||
tungmhoang marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| image:bluetooth-audio-file-finder.png[width=768px,alt="Finder window highlighting a selected WAV file ready for injection"] | ||
|
|
||
| * Open the target application on the device (e.g., a voice recorder app or phone app) so it’s ready to capture the injected audio. | ||
|
|
||
| image:bluetooth-audio-injection-uploaded.png[width=768px,alt="Audio injection screen with sample.wav file ready and inject button active"] | ||
|
|
||
| * Choose *Inject*. The panel shows the status *Injecting…* above the purple action bar. On the device screen, the waveform and recording timer confirm playback is occurring. | ||
|
|
||
| image:bluetooth-audio-injecting.png[width=768px,alt="Manual session screen showing the audio file sample.wav being injected into a Pixel 7 Pro"] | ||
|
|
||
| * When the injection finishes, the session shows a confirmation banner: `Audio file [file_name] has been injected successfully.` | ||
|
|
||
| == Reviewing session artifacts | ||
|
|
||
| After the session, open xref:session-explorer:manage-sessions.adoc[Session Overview,window=read-later]. Under *Audio tracks*, you can download: | ||
|
|
||
| * *Input audio*: the uploaded audio tracks. | ||
| * *Injected audio*: the audio tracks that were injected to the device. | ||
| * *Output audio*: the output audio tracks. | ||
|
|
||
| image:bluetooth-audio-session-overview.png[width=768px,alt="Session summary showing audio tracks injected and details about the device and session"] | ||
|
|
||
| == Tips & best practices | ||
|
|
||
| * *Filter devices with bluetooth audio enabled* | ||
| + | ||
| Filter only devices with bluetooth audio enabled by selecting *Audio* -> *Supported* in the search bar. | ||
|
|
||
| image:bluetooth-audio-device-filter.png[width=768px,alt="Device filter showing the Audio capability filter with Supported selected"] | ||
|
|
||
| * *Verify format before upload.* | ||
| + | ||
| Convert the audio file to *8 kHz, 16-bit, mono PCM WAV* and keep the file size under *30 MB*. | ||
tungmhoang marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| * *Stage the device app first.* | ||
| + | ||
| Open the recording or target app and get it ready *before* clicking *Inject*. | ||
|
|
||
| == Troubleshooting | ||
|
|
||
| [cols="1,2"] | ||
| |=== | ||
| | Issue | Resolution | ||
|
|
||
| | *Inject button is disabled* | Ensure a file is uploaded and that it meets the required format (WAV, OGG, or MP3) and size (≤30 MB). | ||
| | *No inject button* | Make sure the device has bluetooth audio enabled. Contact Kobiton support for more details on enabling bluetooth audio. | ||
| | *No audio recorded in the app* a| | ||
| * Unmute the microphone. | ||
|
|
||
| * Make sure the target app is actively recording or listening when you click Inject. | ||
|
|
||
| * Verify device volume and any in-app input settings. | ||
| |=== | ||
|
|
||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.