eSpeak NG is an open source speech synthesizer that supports more than hundred languages and accents.
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.

options.h 2.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /***************************************************************************
  2. * Copyright (C) 2005 to 2007 by Jonathan Duddington *
  3. * email: [email protected] *
  4. * Copyright (C) 2013 by Reece H. Dunn *
  5. * *
  6. * This program is free software; you can redistribute it and/or modify *
  7. * it under the terms of the GNU General Public License as published by *
  8. * the Free Software Foundation; either version 3 of the License, or *
  9. * (at your option) any later version. *
  10. * *
  11. * This program is distributed in the hope that it will be useful, *
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of *
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
  14. * GNU General Public License for more details. *
  15. * *
  16. * You should have received a copy of the GNU General Public License *
  17. * along with this program; if not, see: *
  18. * <http://www.gnu.org/licenses/>. *
  19. ***************************************************************************/
  20. #ifndef OPTIONS_H
  21. #define OPTIONS_H
  22. #include "wx/dialog.h"
  23. #include "wx/spinctrl.h"
  24. /**
  25. *@author Jonathan Duddington
  26. */
  27. extern void ConfigInit(bool use_defaults);
  28. extern void ConfigSave(int end);
  29. extern void ConfigSetPaths();
  30. extern wxString path_espeakdata;
  31. extern wxString path_spectload;
  32. extern wxString path_spectload2;
  33. extern wxString path_pitches;
  34. extern wxString path_phfile;
  35. extern wxString path_phsource;
  36. extern wxString path_dictsource;
  37. extern wxString path_modifiervoice;
  38. extern wxString path_dir1;
  39. extern int frame_x, frame_y, frame_w, frame_h;
  40. extern char path_source[sizeof(path_home)+20];
  41. extern char path_dsource[sizeof(path_home)+20];
  42. extern int option_speed;
  43. extern void OnOptions2(int event_id);
  44. // not currently used
  45. class Options : public wxDialog {
  46. public:
  47. Options(wxWindow *parent);
  48. ~Options();
  49. private:
  50. void OnCommand(wxCommandEvent& event);
  51. wxButton *m_save;
  52. wxButton *m_close;
  53. wxStaticText *m_lab[10];
  54. wxTextCtrl *m_samplerate;
  55. DECLARE_EVENT_TABLE()
  56. };
  57. #endif