chromium/components/speech/endpointer/endpointer.cc

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "components/speech/endpointer/endpointer.h"

#include "base/time/time.h"
#include "components/speech/audio_buffer.h"

namespace {
const int64_t kMicrosecondsPerSecond =;
const int kFrameRate =;  // 1 frame = 20ms of audio.
}  // namespace

namespace speech {

Endpointer::Endpointer(int sample_rate)
    :{}

void Endpointer::Reset() {}

void Endpointer::StartSession() {}

void Endpointer::EndSession() {}

void Endpointer::SetEnvironmentEstimationMode() {}

void Endpointer::SetUserInputMode() {}

EpStatus Endpointer::Status(int64_t* time) {}

EpStatus Endpointer::ProcessAudio(const AudioChunk& raw_audio, float* rms_out) {}

EpStatus Endpointer::ProcessAudio(const int16_t* audio_data,
                                  const int num_samples,
                                  float* rms_out) {}

}  // namespace speech