# Voice · API · zvuk

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

One playback instance, returned from sound.play(). Owns its source node
and gain stage; disposes itself on natural end, signal abort, or stop().

Voice constructor is package-private — callers obtain instances via
Sound.play().

[← API](/api/)

Class

# Voice

One playback instance, returned from sound.play(). Owns its source node and gain stage; disposes itself on natural end, signal abort, or stop(). Voice constructor is package-private — callers obtain instances via Sound.play().

## Members

-   constructor
-   bus
-   ended Resolves when playback finishes (natural end, stop(), or abort).
-   id
-   priority
-   sourceName Name of the Sound that spawned this voice (if any). Used for crossfade.
-   startedAt
-   nextId
-   isPaused
-   playbackRate
-   spatializer
-   cues
-   fade
-   level
-   pause
-   resume
-   setPlaybackRate
-   stop
