Integrate OpenEars in Corona via Enterprise

Hi,

I did this tutorial : https://coronalabs.com/blog/2014/03/18/tutorial-corona-enterprise-quickstart-ios/

It works perfectly thanks!!! 

Now I’d like to integrate OpenEars in Corona via Enterprise.

Here is a simple tutorial on OpenEars http://www.politepix.com/openears/tutorial/

Just click " OpenEars : Synthesized speech/text-to-speech"

and you will get the tutorial below.

What I understand :

  • the code in Plugin.xcodeproj is in C++
  • I must put all my methods in PluginLibrary.mm
  • I have to declare my framework in PluginLibrary.mm
  • I have to import my framework in App.xcodeproj 
  • the code in OpenEars tutorial is in Objective-C
  • App.xcodeproj is just a “bridge” between my Corona code and the plugin 

Should I translate OpenEars code from Objective-C to C++?

Any help would be great!

Thanks a lot

Best

Olivier

We have just open-sourced many of our plugins on our GitHub repository: https://github.com/coronalabs/

Perhaps you could grab a few tutorials and look at the source and see how we’ve been handling it.

Rob

Thanks Rob!

A question : how can I set a delegate in  PluginLibrary.mm?

when I use self  in  PluginLibrary.mm ,

for example : 

//Set the AcapelaSpeech delegates in order to receive events (not needed if you don't want events) [acaTTS setDelegate:self];

I’ve got an error :

Use of undeclared identifier ‘self’

Thanks for your help!

Best,

Olivier

I think I may have answered this on your other post:

https://forums.coronalabs.com/topic/47127-accessing-variablefunction-defined-in-appcoronadelegate/

Rob

Thanks Rob!

We have just open-sourced many of our plugins on our GitHub repository: https://github.com/coronalabs/

Perhaps you could grab a few tutorials and look at the source and see how we’ve been handling it.

Rob

Thanks Rob!

A question : how can I set a delegate in  PluginLibrary.mm?

when I use self  in  PluginLibrary.mm ,

for example : 

//Set the AcapelaSpeech delegates in order to receive events (not needed if you don't want events) [acaTTS setDelegate:self];

I’ve got an error :

Use of undeclared identifier ‘self’

Thanks for your help!

Best,

Olivier

I think I may have answered this on your other post:

https://forums.coronalabs.com/topic/47127-accessing-variablefunction-defined-in-appcoronadelegate/

Rob

Thanks Rob!