Skip to content

Split Nemo specific speech features into a separate header#1061

Merged
sayanshaw24 merged 4 commits into
mainfrom
nebanfic/speech-features-normalize
May 13, 2026
Merged

Split Nemo specific speech features into a separate header#1061
sayanshaw24 merged 4 commits into
mainfrom
nebanfic/speech-features-normalize

Conversation

@nenad1002
Copy link
Copy Markdown
Contributor

Split the NeMo speech feature kernels (NemoLogMel, PerFeatureNormalize) into a new header so consumers can use them without pulling in dlib. The original header still re-includes the new one, so it remains backward-compatible.

Copilot AI review requested due to automatic review settings May 13, 2026 14:49
@nenad1002 nenad1002 requested a review from a team as a code owner May 13, 2026 14:49
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the shared speech feature headers to decouple NeMo-specific kernels from the broader speech_features.hpp header (which pulls in dlib), enabling consumers to use NemoLogMel and PerFeatureNormalize without the dlib dependency while keeping backward compatibility.

Changes:

  • Added shared/api/nemo_speech_features.hpp containing NemoLogMel and PerFeatureNormalize.
  • Updated shared/api/speech_features.hpp to include the new header and removed the inlined NeMo kernel definitions from it.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
shared/api/speech_features.hpp Re-includes the new NeMo-only header and removes the embedded NeMo kernel implementations.
shared/api/nemo_speech_features.hpp New header that exposes NeMo speech kernels without including dlib headers.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread shared/api/nemo_speech_features.hpp
Comment thread shared/api/nemo_speech_features.hpp
Comment thread shared/api/speech_features.hpp Outdated
@nenad1002 nenad1002 requested a review from sayanshaw24 May 13, 2026 16:39
@sayanshaw24 sayanshaw24 enabled auto-merge (squash) May 13, 2026 16:46
@sayanshaw24 sayanshaw24 merged commit e1cccaa into main May 13, 2026
38 checks passed
@sayanshaw24 sayanshaw24 deleted the nebanfic/speech-features-normalize branch May 13, 2026 16:46
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.

3 participants