| 1 |
/*************************************************************************/ |
| 2 |
/* Cobalt Speech and Language, Inc */ |
| 3 |
/* Copyright (c) 2015 */ |
| 4 |
/* All Rights Reserved. */ |
| 5 |
/* */ |
| 6 |
/* Permission is hereby granted, free of charge, to use and distribute */ |
| 7 |
/* this software and its documentation without restriction, including */ |
| 8 |
/* without limitation the rights to use, copy, modify, merge, publish, */ |
| 9 |
/* distribute, sublicense, and/or sell copies of this work, and to */ |
| 10 |
/* permit persons to whom this work is furnished to do so, subject to */ |
| 11 |
/* the following conditions: */ |
| 12 |
/* 1. The code must retain the above copyright notice, this list of */ |
| 13 |
/* conditions and the following disclaimer. */ |
| 14 |
/* 2. Any modifications must be clearly marked as such. */ |
| 15 |
/* 3. Original authors' names are not deleted. */ |
| 16 |
/* 4. The authors' names are not used to endorse or promote products */ |
| 17 |
/* derived from this software without specific prior written */ |
| 18 |
/* permission. */ |
| 19 |
/* */ |
| 20 |
/* COBALT SPEECH AND LANGUAGE INC AND THE CONTRIBUTORS TO THIS WORK */ |
| 21 |
/* DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING */ |
| 22 |
/* ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT */ |
| 23 |
/* SHALL CARNEGIE MELLON UNIVERSITY NOR THE CONTRIBUTORS BE LIABLE */ |
| 24 |
/* FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES */ |
| 25 |
/* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN */ |
| 26 |
/* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, */ |
| 27 |
/* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF */ |
| 28 |
/* THIS SOFTWARE. */ |
| 29 |
/* */ |
| 30 |
/*************************************************************************/ |
| 31 |
/* Authors: Alok Parlikar ([email protected]) */ |
| 32 |
/* Date: December 2015 */ |
| 33 |
/* */ |
| 34 |
/* Thanks to VocaliD Inc. for supporting this work. */ |
| 35 |
/*************************************************************************/ |
| 36 |
// FliteCMUGenericCGObj.cpp : Implementation of CFliteCMUGenericCGObj |
| 37 |
|
| 38 |
#include "stdafx.h" |
| 39 |
#include "FliteCMUGenericCGObj.h" |
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
cst_voice *REGISTER_VOX(const char *voxdir) |
| 44 |
{ |
| 45 |
cst_voice *v; |
| 46 |
if (voxdir == NULL) |
| 47 |
return NULL; |
| 48 |
v = flite_voice_load(voxdir); |
| 49 |
return v; |
| 50 |
|
| 51 |
} |
| 52 |
void UNREGISTER_VOX(cst_voice *vox) |
| 53 |
{ |
| 54 |
delete_voice(vox); |
| 55 |
} |
| 56 |
|
| 57 |
// CFliteCMUGenericCGObj |
| 58 |
|