Browse Source

Merge branch 'master' into android

Conflicts:
	README.md
master
Reece H. Dunn 12 years ago
parent
commit
26d1141ad2
4 changed files with 7 additions and 3 deletions
  1. 0
    1
      README.md
  2. 1
    1
      phsource/ph_english
  3. 5
    0
      src/dictionary.cpp
  4. 1
    1
      src/wave.cpp

+ 0
- 1
README.md View File



1. Set the location of the Android SDK: 1. Set the location of the Android SDK:


$ export ANDROID_HOME=<path-to-sdk>
2. Build the project: 2. Build the project:


$ ./autogen.sh $ ./autogen.sh

+ 1
- 1
phsource/ph_english View File



phoneme i // optional variant of [I] for end of words phoneme i // optional variant of [I] for end of words
vowel starttype #i endtype #i vowel starttype #i endtype #i
ipa ɪ
ipa i
length 140 length 140
IfNextVowelAppend(;) IfNextVowelAppend(;)
FMT(vowel/ii_7) FMT(vowel/ii_7)

+ 5
- 0
src/dictionary.cpp View File

/*************************************************************************** /***************************************************************************
* Copyright (C) 2005 to 2013 by Jonathan Duddington * * Copyright (C) 2005 to 2013 by Jonathan Duddington *
* email: [email protected] * * email: [email protected] *
* Copyright (C) 2013 Reece H. Dunn *
* * * *
* This program is free software; you can redistribute it and/or modify * * This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by * * it under the terms of the GNU General Public License as published by *
strcpy(&phon_out_buf[phon_out_ix], phon_buf); strcpy(&phon_out_buf[phon_out_ix], phon_buf);
phon_out_ix += len; phon_out_ix += len;
} }

if (!phon_out_buf)
return("");

phon_out_buf[phon_out_ix] = 0; phon_out_buf[phon_out_ix] = 0;


return(phon_out_buf); return(phon_out_buf);

+ 1
- 1
src/wave.cpp View File

#include <sys/time.h> #include <sys/time.h>
#include <time.h> #include <time.h>


#include "portaudio.h"
#ifndef PLATFORM_WINDOWS #ifndef PLATFORM_WINDOWS
#include <unistd.h> #include <unistd.h>
#endif #endif
enum {ONE_BILLION=1000000000}; enum {ONE_BILLION=1000000000};


#ifdef USE_PORTAUDIO #ifdef USE_PORTAUDIO
#include "portaudio.h"


#undef USE_PORTAUDIO #undef USE_PORTAUDIO
// determine portaudio version by looking for a #define which is not in V18 // determine portaudio version by looking for a #define which is not in V18

Loading…
Cancel
Save