Skip to content

Conversation

@SurajSonawane2415
Copy link
Contributor

@SurajSonawane2415 SurajSonawane2415 commented Mar 27, 2025

Overview

The current documentation suggests setting the
NOISE_SUPPRESSION_MODEL_NAME variable using a quoted tilde (~):

export NOISE_SUPPRESSION_MODEL_NAME="~/path/to/model.xml"

However, when quoted, ~ is not expanded to the home directory,
causing ls -l $NOISE_SUPPRESSION_MODEL_NAME to fail with
"No such file or directory." & Getting error while testing OpenVino noise
suppression model with the SOF plugin.

Fix

The correct way to set this variable is without quotes:

export NOISE_SUPPRESSION_MODEL_NAME=~/path/to/model.xml

This ensures the path expands correctly.

Testing

image

Manually tested by setting the variable and verifying with ls -l.

This PR updates the documentation accordingly.

The previous documentation incorrectly suggested setting the
NOISE_SUPPRESSION_MODEL_NAME variable with a quoted tilde (~).
When quoted, tilde expansion does not occur, leading to an invalid path.

Signed-off-by: Suraj Sonawane <surajsonawane0215@gmail.com>
@sofci
Copy link
Collaborator

sofci commented Mar 27, 2025

Can one of the admins verify this patch?

reply test this please to run this test once

@lyakh lyakh changed the title tools: plugin: Fix incorrect tilde expansion in environment variable [SKIP SOFCI-TEST] tools: plugin: Fix incorrect tilde expansion in environment variable Mar 28, 2025
@lyakh
Copy link
Collaborator

lyakh commented Mar 28, 2025

Can one of the admins verify this patch?

reply test this please to run this test once

Since this is a documentation-only change, no need to run on-hardware tests, I've updated the subject accordingly


3. Worth building and running the demo noise suppression application in the open model zoo
repository to make sure OpenVino and OpenCV are configured properly.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor nit: the git commit message should have a module prefix on the summary line, e.g. "tools: plugin: Fix incorrect tilde expansion"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the feedback and your time. I’ll keep this in mind and follow the convention in future commits.

@lgirdwood lgirdwood merged commit 88c6e53 into thesofproject:main Mar 31, 2025
42 of 49 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.

6 participants