Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MoonInTheRiver/DiffSinger
/ register_vocoder
Function
register_vocoder
vocoders/base_vocoder.py:5–8 ·
view source on GitHub ↗
(cls)
Source
from the content-addressed store, hash-verified
3
4
5
def
register_vocoder(cls):
6
VOCODERS[cls.__name__.lower()] = cls
7
VOCODERS[cls.__name__] = cls
8
return
cls
9
10
11
def
get_vocoder_cls(hparams):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected