5

I found a speech synthesizer that supports many languages (http://espeak.sourceforge.net/index.html). But the source code that is available is written in C.

What can i do to make it work on iPhone?

Charles
  • 50,943
  • 13
  • 104
  • 142
DixieFlatline
  • 7,895
  • 24
  • 95
  • 147
  • This project is GPL (http://espeak.sourceforge.net/license.html). I don't think that would be ok in any iPhone project. – Lou Franco Oct 03 '11 at 12:54
  • I would look at Flite instead http://artofsystems.blogspot.com/2009/02/speech-synthesis-on-iphone-with-flite.html It's been ported and has a iPhone compatible license. GPL is incompatible for any iPhone app, free or commercial, because the end-user cannot update the app with their version of the GPL protected code. – Lou Franco Oct 03 '11 at 14:46

2 Answers2

5

Objective-C is a strict super set of C. Which means you can use any C code in your Obj-C project.

rgngl
  • 5,353
  • 3
  • 30
  • 34
1

Yes, as long as it's been ported to the LLVM C-compiler. You can create a statically linked framework out of it, and then link into your project.

Apple does not allow dynamically-loaded frameworks.

Lou Franco
  • 87,846
  • 14
  • 132
  • 192
  • How can i find out if it's been ported to the LLVM C-compiler? And if it's been, what to do next? – DixieFlatline Oct 03 '11 at 12:27
  • It doesn't look like it has, but you could probably do it yourself. Create a new framework project, add the source and compile. Fix compiler errors. – Lou Franco Oct 03 '11 at 12:54