Skip to content

Commit

Permalink
Internal
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 553854100
  • Loading branch information
vdumoulin authored and copybara-github committed Aug 22, 2023
1 parent 628bfbc commit 6c45746
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 1 deletion.
5 changes: 4 additions & 1 deletion chirp/audio_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,11 @@
_BOUNDARY_TO_PADDING_MODE = {'zeros': 'CONSTANT'}


def load_audio(path: str, target_sample_rate: int, **kwargs) -> jnp.ndarray:
def load_audio(
path: epath.PathLike, target_sample_rate: int, **kwargs
) -> jnp.ndarray:
"""Load a general audio resource."""
path = os.fspath(path)
if path.startswith('xc'):
return load_xc_audio(path, target_sample_rate)
elif path.startswith('http'):
Expand Down
54 changes: 54 additions & 0 deletions chirp/taxonomy/taxonomy_database.json
Original file line number Diff line number Diff line change
Expand Up @@ -259707,6 +259707,60 @@
"source_namespace": "ibp2019",
"target_namespace": "ebird2021"
},
"ibp2019_to_ebird2022": {
"mapped_pairs": {
"AMCR": "amecro",
"AMGO": "amegfi",
"AMRE": "amered",
"AMRO": "amerob",
"BAOR": "balori",
"BAWW": "bawwar",
"BBWA": "babwar",
"BCCH": "bkcchi",
"BGGN": "buggna",
"BHCO": "bnhcow",
"BHVI": "buhvir",
"BLJA": "blujay",
"BRCR": "brncre",
"BTNW": "btnwar",
"BWWA": "buwwar",
"CANG": "cangoo",
"CARW": "carwre",
"CEDW": "cedwax",
"CORA": "comrav",
"COYE": "comyel",
"CSWA": "chswar",
"DOWO": "dowwoo",
"EATO": "eastow",
"EAWP": "eawpew",
"HAWO": "haiwoo",
"HETH": "herthr",
"HOWA": "hoowar",
"KEWA": "kenwar",
"LOWA": "louwat",
"NAWA": "naswar",
"NOCA": "norcar",
"NOFL": "norfli",
"OVEN": "ovenbi1",
"PIWO": "pilwoo",
"RBGR": "robgro",
"RBWO": "rebwoo",
"RCKI": "ruckin",
"REVI": "reevir",
"RSHA": "reshaw",
"RWBL": "rewbla",
"SCTA": "scatan",
"SWTH": "swathr",
"TUTI": "tuftit",
"VEER": "veery",
"WBNU": "whbnut",
"WITU": "wiltur",
"WOTH": "woothr",
"YBCU": "yebcuc"
},
"source_namespace": "ibp2019",
"target_namespace": "ebird2021"
},
"ioc_12_2_to_ebird2021": {
"mapped_pairs": {
"abeillia abeillei": "emchum1",
Expand Down

0 comments on commit 6c45746

Please sign in to comment.