Skip to content

fix: ensure audioLanguage is passed to decodeChunk#402

Merged
chmjkb merged 1 commit intomainfrom
@chmjkb/multilingual-whisper-fix
Jun 17, 2025
Merged

fix: ensure audioLanguage is passed to decodeChunk#402
chmjkb merged 1 commit intomainfrom
@chmjkb/multilingual-whisper-fix

Conversation

@chmjkb
Copy link
Copy Markdown
Collaborator

@chmjkb chmjkb commented Jun 17, 2025

Description

Currently audioLanguage is not properly passed down to decodeChunk, resulting in getStartingTokenIds returning just BOS, while it should return some more tokens for multilingual whisper. This PR fixes ensures that audioLanguage is properly passed.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update (improves or adds clarity to existing documentation)

Tested on

  • iOS
  • Android

Testing instructions

Screenshots

Related issues

Checklist

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly
  • My changes generate no new warnings

Additional notes

@chmjkb chmjkb requested a review from mkopcins June 17, 2025 06:16
@chmjkb chmjkb self-assigned this Jun 17, 2025
@chmjkb chmjkb linked an issue Jun 17, 2025 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

@pweglik pweglik left a comment

Choose a reason for hiding this comment

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

Looks good, let's release patch!

@chmjkb chmjkb merged commit 62f7d70 into main Jun 17, 2025
2 checks passed
@chmjkb chmjkb deleted the @chmjkb/multilingual-whisper-fix branch June 17, 2025 09:37
chmjkb added a commit that referenced this pull request Jun 17, 2025
## Description

Currently audioLanguage is not properly passed down to decodeChunk,
resulting in `getStartingTokenIds` returning just BOS, while it should
return some more tokens for multilingual whisper. This PR fixes ensures
that audioLanguage is properly passed.

### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] Documentation update (improves or adds clarity to existing
documentation)

### Tested on

- [x] iOS
- [x] Android

### Testing instructions

<!-- Provide step-by-step instructions on how to test your changes.
Include setup details if necessary. -->

### Screenshots

<!-- Add screenshots here, if applicable -->

### Related issues

<!-- Link related issues here using #issue-number -->

### Checklist

- [ ] I have performed a self-review of my code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have updated the documentation accordingly
- [ ] My changes generate no new warnings

### Additional notes

<!-- Include any additional information, assumptions, or context that
reviewers might need to understand this PR. -->
mkopcins pushed a commit that referenced this pull request Oct 15, 2025
## Description

Currently audioLanguage is not properly passed down to decodeChunk,
resulting in `getStartingTokenIds` returning just BOS, while it should
return some more tokens for multilingual whisper. This PR fixes ensures
that audioLanguage is properly passed.

### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] Documentation update (improves or adds clarity to existing
documentation)

### Tested on

- [x] iOS
- [x] Android

### Testing instructions

<!-- Provide step-by-step instructions on how to test your changes.
Include setup details if necessary. -->

### Screenshots

<!-- Add screenshots here, if applicable -->

### Related issues

<!-- Link related issues here using #issue-number -->

### Checklist

- [ ] I have performed a self-review of my code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have updated the documentation accordingly
- [ ] My changes generate no new warnings

### Additional notes

<!-- Include any additional information, assumptions, or context that
reviewers might need to understand this PR. -->
mkopcins pushed a commit that referenced this pull request Oct 15, 2025
## Description

Currently audioLanguage is not properly passed down to decodeChunk,
resulting in `getStartingTokenIds` returning just BOS, while it should
return some more tokens for multilingual whisper. This PR fixes ensures
that audioLanguage is properly passed.

### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] Documentation update (improves or adds clarity to existing
documentation)

### Tested on

- [x] iOS
- [x] Android

### Testing instructions

<!-- Provide step-by-step instructions on how to test your changes.
Include setup details if necessary. -->

### Screenshots

<!-- Add screenshots here, if applicable -->

### Related issues

<!-- Link related issues here using #issue-number -->

### Checklist

- [ ] I have performed a self-review of my code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have updated the documentation accordingly
- [ ] My changes generate no new warnings

### Additional notes

<!-- Include any additional information, assumptions, or context that
reviewers might need to understand this PR. -->
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.

Possible Bug in whisper and/or whisperMultilingual

3 participants