Skip to content

feat: Add mu-law support for voicing.#304

Closed
KakaruHayate wants to merge 1 commit into
openvpi:mainfrom
KakaruHayate:mulaw-pr
Closed

feat: Add mu-law support for voicing.#304
KakaruHayate wants to merge 1 commit into
openvpi:mainfrom
KakaruHayate:mulaw-pr

Conversation

@KakaruHayate

Copy link
Copy Markdown

Introduce 'mulaw' voicing_domain and mu-law energy handling across configs and preprocessing. Configs updated to include voicing_domain='mulaw' (acoustic/variance templates and instances). Acoustic/variance binarizers now pass hparams['voicing_domain'] to get_voicing. Parameter adaptor clamps voicing max to 0 when domain is 'mulaw'. get_energy_librosa and get_voicing gain new domain/mu params and implement mu-law compression (default mu=255) to produce a dB-like range compatible with existing pipelines. These changes add support for mu-law representation of voicing/energy.

Introduce 'mulaw' voicing_domain and mu-law energy handling across configs and preprocessing. Configs updated to include voicing_domain='mulaw' (acoustic/variance templates and instances). Acoustic/variance binarizers now pass hparams['voicing_domain'] to get_voicing. Parameter adaptor clamps voicing max to 0 when domain is 'mulaw'. get_energy_librosa and get_voicing gain new domain/mu params and implement mu-law compression (default mu=255) to produce a dB-like range compatible with existing pipelines. These changes add support for mu-law representation of voicing/energy.

revert
@autumn-2-net

Copy link
Copy Markdown

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: a9b9be66b9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@KakaruHayate

KakaruHayate commented Jun 22, 2026

Copy link
Copy Markdown
Author

Will be implemented in V3

KakaruHayate added a commit to KakaruHayate/DiffSinger that referenced this pull request Jul 2, 2026
Sync only mu-law related changes from openvpi/DiffSinger PR openvpi#304:
- voicing_domain: 'mulaw' in configs (all 4 config files)
- mu-law compression in binarizer_utils (get_energy/get_voicing)
- voicing range clamp in param_adaptor
- pass voicing_domain in acoustic/variance binarizers
KakaruHayate added a commit to KakaruHayate/DiffSinger that referenced this pull request Jul 2, 2026
Sync mu-law changes from openvpi/DiffSinger PR openvpi#304:
- voicing_domain: mulaw in configs
- mu-law compression in binarizer_utils
- voicing range clamp in param_adaptor
- pass voicing_domain in binarizers
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.

2 participants