# pickSource · API · zvuk

zvuk v1.14.1 · MIT · https://zvuk.schmooky.dev/api/pickSource/

Reference for pickSource.

[← API](/api/)

Function

# pickSource

## Signatures

-   pickSource ( urls: unknown ): string
    
    Given a list of URLs (e.g. \['sfx.webm', 'sfx.m4a'\]), return the first one the browser claims it can play. If none match — or there's no DOM, e.g. during SSR — return the first URL and let decodeAudioData decide.
