伊地知ニジカ放送局だぬ゛ん゛. https://www.youtube.com/@deerjika
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.

68 lines
2.9 KiB

  1. //////////////////////////////////////////////////////////////////////
  2. /*! @class AquesTalk2
  3. @brief 規則音声合成エンジン AquesTalk2
  4. 音声記号列から音声波形データをメモリ上に生成する
  5. 出力音声波形は、8HKzサンプリング, 16bit,モノラル,WAVフォーマット
  6. @author N.Yamazaki (Aquest)
  7. @date 2009/11/28 N.Yamazaki Creation (from AuesTalk.h)
  8. */
  9. // COPYRIGHT (C) 2009 AQUEST CORP.
  10. //////////////////////////////////////////////////////////////////////
  11. #if !defined(_AQUESTALK2_H_)
  12. #define _AQUESTALK2_H_
  13. #ifdef __cplusplus
  14. extern "C"{
  15. #endif
  16. #if defined(AQUESTALK2_EXPORTS)
  17. #undef DllExport
  18. #define DllExport __declspec( dllexport )
  19. #else
  20. #define DllExport
  21. #endif
  22. #if !(defined(WIN32)||defined(WINCE))
  23. #define __stdcall // for Linux etc.
  24. #endif
  25. /////////////////////////////////////////////
  26. //! 音声記号列から音声波形を生成
  27. //! 音声波形データは内部で領域確保される。
  28. //! 音声波形データの解放は本関数の呼び出し側でAquesTalk_FreeWave()にて行う
  29. //! @param koe[in] 音声記号列(SJIS NULL終端)
  30. //! @param iSpeed[in] 発話速度 [%] 50-300 の間で指定 default:100
  31. //! @param pSize[out] 生成した音声データのサイズ[byte](エラーの場合はエラーコードが返る)
  32. //! @param phontDat[in] phontデータの先頭アドレスを指定します。このDLLのデフォルトPhontを用いるときは0を指定します。
  33. //! @return WAVフォーマットの音声データの先頭アドレス。エラー時はNULLが返る
  34. DllExport unsigned char * __stdcall AquesTalk2_Synthe(const char *koe, int iSpeed, int *pSize, void *phontDat);
  35. //! @param koe[in] 音声記号列(EUC NULL終端)
  36. DllExport unsigned char * __stdcall AquesTalk2_Synthe_Euc(const char *koe, int iSpeed, int *pSize, void *phontDat);
  37. //! @param koe[in] 音声記号列(UTF8 NULL終端 BOMはつけられない)
  38. DllExport unsigned char * __stdcall AquesTalk2_Synthe_Utf8(const char *koe, int iSpeed, int *pSize, void *phontDat);
  39. //! @param koe[in] 音声記号列(UTF16 NULL終端 BOMの有無は問わない エンディアンは実行環境に従う)
  40. DllExport unsigned char * __stdcall AquesTalk2_Synthe_Utf16(const unsigned short *koe, int iSpeed, int *pSize, void *phontDat);
  41. //! @param koe[in] 音声記号列(ローマ字表記 NULL終端)
  42. DllExport unsigned char * __stdcall AquesTalk2_Synthe_Roman(const char *koe, int iSpeed, int *pSize, void *phontDat);
  43. /////////////////////////////////////////////
  44. //! 音声データの領域を開放
  45. //! @param wav[in] AquesTalk_Synthe()で返されたアドレスを指定
  46. DllExport void __stdcall AquesTalk2_FreeWave(unsigned char *wav);
  47. #ifdef __cplusplus
  48. }
  49. #endif
  50. #endif // !defined(_AQUESTALK2_H_)
  51. // ----------------------------------------------------------------------
  52. // ! Copyright AQUEST Corp. 2006- . All Rights Reserved. !
  53. // ! An unpublished and CONFIDENTIAL work. Reproduction, adaptation, or !
  54. // ! translation without prior written permission is prohibited except !
  55. // ! as allowed under the copyright laws. !
  56. // ----------------------------------------------------------------------