Skip to content

feat: merge_channels #16

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

Merged
merged 2 commits into from
Mar 21, 2025
Merged

feat: merge_channels #16

merged 2 commits into from
Mar 21, 2025

Conversation

xkeyC
Copy link
Owner

@xkeyC xkeyC commented Mar 21, 2025

Fix: #15

@xkeyC xkeyC requested a review from Copilot March 21, 2025 04:17
Copilot

This comment was marked as resolved.

@xkeyC xkeyC requested a review from Copilot March 21, 2025 07:58
Copy link

@Copilot 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 pull request introduces a new feature to merge multi-channel audio data into a single mono channel using an averaging approach, primarily for macOS output streams. Key changes include:

  • Replacing repeated channel extraction code with a new helper function, merge_channels.
  • Applying merge_channels in both captured and standard PCM data handling.
  • Adding a type annotation for the output stream on macOS.

@xkeyC xkeyC merged commit b3eb9a6 into main Mar 21, 2025
1 check passed
@xkeyC xkeyC deleted the feat/merge_channels branch March 21, 2025 11:27
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.

目前仅识别左声道音频,对于一些左右声道内容不同的音频来说会影响识别效果
1 participant