◐ Shell
clean mode source ↗

GitHub - pfeatherstone/hubert.cpp: C++ implementation of DistilHuBERT

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Ubuntu

hubert.cpp

C++ implementation of DistilHuBERT using Eigen.

Example

hubert::model net;

float audio[16000]; // 16kHz mono audio
std::span<const float> feats = net.encode(audio); // [T,768] : an array of 768 packed normalized features

Features

  • Dynamic sizes (but no batches)
  • Weights compiled into the library
  • Block-based API
  • Streaming API.

Usage

  • Useful for downstream tasks such as speech representation, speaker identification, classification, etc.