Skip to content

feat: merge_channels#16

Merged
xkeyC merged 2 commits intomainfrom
feat/merge_channels
Mar 21, 2025
Merged

feat: merge_channels#16
xkeyC merged 2 commits intomainfrom
feat/merge_channels

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

This comment was marked as resolved.

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

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