You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
505 B
17 lines
505 B
#pragma once |
|
|
|
#include <QString> |
|
#include <vector> |
|
#include <cstdint> |
|
|
|
class VoiceEncoder { |
|
public: |
|
static void setPreset(int preset); |
|
static int preset(); |
|
|
|
static int encodeToFile(const std::vector<int16_t>& pcm, int sampleRate, int channels, |
|
const QString& filePath, float& outDurationSec); |
|
static QString generateFileName(); |
|
static QString mediaDir(const QString& dbPath, const QString& channelId); |
|
static void ensureMediaDir(const QString& dir); |
|
};
|
|
|