/*
  SPDX-FileCopyrightText: 2023-2026 Laurent Montel <montel@kde.org>

  SPDX-License-Identifier: GPL-2.0-or-later
*/

#pragma once

#include "speechtotext/speechtotextplugin.h"

class WhisperSpeechToTextPlugin : public TextSpeechToText::SpeechToTextPlugin
{
    Q_OBJECT
public:
    explicit WhisperSpeechToTextPlugin(QObject *parent = nullptr);
    ~WhisperSpeechToTextPlugin() override;

    void speechToText() override;

    [[nodiscard]] int sampleRate() const override;
    [[nodiscard]] QIODevice *audioDevice() const override;
    [[nodiscard]] bool loadSettings() override;
    void clear() override;
};
