MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / matches

Method matches

src/models/omnivoice/audio_tokenizer.cpp:1949–1960  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1947 }
1948
1949 bool matches(
1950 int64_t acoustic_samples,
1951 int64_t semantic_samples,
1952 int64_t frames,
1953 ggml_backend_t backend,
1954 int threads) const {
1955 return acoustic_sample_capacity_ >= acoustic_samples &&
1956 semantic_sample_capacity_ >= semantic_samples &&
1957 frame_capacity_ >= frames &&
1958 backend_ == backend &&
1959 compute_threads_ == std::max(1, threads);
1960 }
1961
1962 OmniVoiceAudioTokens run(const NormalizedReferenceAudio & audio) {
1963 const int64_t actual_frames = audio.frames;

Callers 2

decode_audio_tokensMethod · 0.45

Calls 1

maxFunction · 0.85

Tested by

no test coverage detected