AudioMeta

org.llm4s.speech.AudioMeta
final case class AudioMeta(sampleRate: Int, numChannels: Int, bitDepth: Int)

Basic audio metadata.

For AudioFormat.Mp3 audio bitDepth is 0, meaning "not applicable": MP3 is compressed, so it has no sample width, and a duration or frame count cannot be computed from data.length and these fields. sampleRate and numChannels are then the service's nominal values for the format it was asked for, not read from the stream.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product