SKaiNET
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
SKaiNET
skainet-data-media
/
sk.ainet.data.media
/
Audio
/
Companion
Companion
object
Companion
(
source
)
Members
Properties
SAMPLE_
RATE_
16K
Link copied to clipboard
const
val
SAMPLE_RATE_16K
:
Int
=
16000
SAMPLE_
RATE_
22K
Link copied to clipboard
const
val
SAMPLE_RATE_22K
:
Int
=
22050
SAMPLE_
RATE_
44K
Link copied to clipboard
const
val
SAMPLE_RATE_44K
:
Int
=
44100
SAMPLE_
RATE_
48K
Link copied to clipboard
const
val
SAMPLE_RATE_48K
:
Int
=
48000
SAMPLE_
RATE_
8K
Link copied to clipboard
const
val
SAMPLE_RATE_8K
:
Int
=
8000
Common sample rates.
Functions
from
Tensor
Link copied to clipboard
fun
<
T
:
DType
,
V
>
fromTensor
(
tensor
:
Tensor
<
T
,
V
>
,
sampleRate
:
Int
,
layout
:
ChannelLayout
)
:
Audio
<
T
,
V
>
Create Audio from an existing tensor with explicit metadata.