Skip to content

get_DataUrl

James Brundage edited this page Oct 23, 2026 · 1 revision

get_DataUrl

Wave Data Url

Gets the Wave as a Data Url.

This can be used as an audio source <audio src>.

View Source
<#
.SYNOPSIS
    Wave Data Url
.DESCRIPTION
    Gets the Wave as a Data Url.
    
    This can be used as an audio source `<audio src>`.
#>
"data:audio/wav;base64,$(
    [Web.HttpUtility]::UrlPathEncode(
        [Convert]::ToBase64String(            
            $this.ToArray()                
        )
    )
)"

Clone this wiki locally