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

Add support for VSI as an input audio source #38

Merged

Conversation

AhmedIsmail02
Copy link
Member

Description

Add support for VSI as the input audio source for the existing ML applications.
Test Steps

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

AhmedIsmail02 and others added 4 commits January 25, 2024 13:58
Add the missing FVP VSI handlers for Corstone-300 platform
to enable the ML applications to use VSI as the audio source.

Signed-off-by: Ahmed Ismail <[email protected]>
Missing VSI IRQ numbers should be defined in IRQ enum
located in platform_irq.h header file for each platform
(Corstone-300 and Corstone-310). This is done to prevent
any undefined behavior while enabling VSI interrupts.

Signed-off-by: Ahmed Ismail <[email protected]>
Signed-off-by: Hugues Kamba-Mpiana <[email protected]>
Signed-off-by: Ahmed Ismail <[email protected]>
The script is added to provide support for Virtual Streaming
Interface (VSI) as the audio source for ML applications with
audio input files.

Signed-off-by: Hugues Kamba-Mpiana <[email protected]>
Signed-off-by: Ahmed Ismail <[email protected]>
@AhmedIsmail02 AhmedIsmail02 requested a review from a team as a code owner January 31, 2024 11:04
AhmedIsmail02 and others added 3 commits January 31, 2024 11:13
It is better to use task notifications in VSI callback
function as this functions is called from an interrupt
service routine where it is not a good practice to execute
functions in its context but rather than that task notifications
should be used to keep the interrupt service routine simple.

Signed-off-by: Ahmed Ismail <[email protected]>
This commit is meant to enable the users to build and run
keyword-detection and speech-recognition ML applications
using VSI(Virtual Streaming Interface) as the input audio
source.

`core_clk.mul=200000000` clock rate multiplier FVP option
is added to increase the clock rate which result in faster
and more precise ML inference.

Signed-off-by: Ahmed Ismail <[email protected]>
Add support for testing ML applications with VSI
as the audio source.

Signed-off-by: Hugues Kamba-Mpiana <[email protected]>
@AhmedIsmail02 AhmedIsmail02 force-pushed the add-support-for-vsi-audio-source branch from 2da92a3 to 3e0bdcd Compare January 31, 2024 14:59
@paulbartell paulbartell merged commit f168ef5 into FreeRTOS:main Jan 31, 2024
6 checks passed
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

Successfully merging this pull request may close these issues.

5 participants