blob: a82476a613a92cc13e088f8d77de0d9d6a25f4cf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef PHONEMEEXTRACTOR_H
#define PHONEMEEXTRACTOR_H
#ifdef _WIN32
#pragma once
#endif
#include "interface.h"
class CSentence;
typedef enum
{
SPEECH_API_SAPI = 0,
SPEECH_API_LIPSINC,
} PE_APITYPE;
typedef enum
{
SR_RESULT_NORESULT = 0,
SR_RESULT_ERROR,
SR_RESULT_SUCCESS,
SR_RESULT_FAILED
} SR_RESULT;
abstract_class IPhonemeExtractor
{
public:
virtual PE_APITYPE GetAPIType() const = 0;
// Used for menus, etc
virtual char const *GetName() const = 0;
virtual SR_RESULT Extract(
const char *wavfile,
int numsamples,
void (*pfnPrint)( PRINTF_FORMAT_STRING const char *fmt, ... ),
CSentence& inwords,
CSentence& outwords ) = 0;
};
#define VPHONEME_EXTRACTOR_INTERFACE "PHONEME_EXTRACTOR_001"
#endif // PHONEMEEXTRACTOR_H
|