@mediapipe/tasks-audio 0.1.0-alpha-4 → 0.1.0-alpha-5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/audio.d.ts CHANGED
@@ -122,16 +122,6 @@ export declare class AudioEmbedder extends AudioTaskRunner<AudioEmbedderResult[]
122
122
  * @return The embedding resuls of the audio
123
123
  */
124
124
  embed(audioData: Float32Array, sampleRate?: number): AudioEmbedderResult[];
125
- /**
126
- * Utility function to compute cosine similarity[1] between two `Embedding`
127
- * objects.
128
- *
129
- * [1]: https://en.wikipedia.org/wiki/Cosine_similarity
130
- *
131
- * @throws if the embeddings are of different types(float vs. quantized), have
132
- * different sizes, or have an L2-norm of 0.
133
- */
134
- static cosineSimilarity(u: Embedding, v: Embedding): number;
135
125
  }
136
126
 
137
127
  /** Options to configure the MediaPipe Audio Embedder Task */