Introducing Google AI Edge Portal: Benchmark Edge AI at scale. Sign-up to request access during private preview.

AudioEmbedderResult interface

Embedding results for a given embedder model.

Signature:

exportdeclareinterfaceAudioEmbedderResult

Properties

Property Type Description
embeddings Embedding[] The embedding results for each model head, i.e. one for each output tensor.
timestampMs number The optional timestamp (in milliseconds) of the start of the chunk of data corresponding to these results.This is only used for embedding extraction on time series (e.g. audio embedding). In these use cases, the amount of data to process might exceed the maximum size that the model can process: to solve this, the input data is split into multiple chunks starting at different timestamps.

AudioEmbedderResult.embeddings

The embedding results for each model head, i.e. one for each output tensor.

Signature:

embeddings:Embedding[];

AudioEmbedderResult.timestampMs

The optional timestamp (in milliseconds) of the start of the chunk of data corresponding to these results.

This is only used for embedding extraction on time series (e.g. audio embedding). In these use cases, the amount of data to process might exceed the maximum size that the model can process: to solve this, the input data is split into multiple chunks starting at different timestamps.

Signature:

timestampMs?:number;

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024年05月07日 UTC.