Copy link to clipboard
Copied
How to connect iOS AVFoundation FrameWork to Adobe Animate with Adobe Air?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Thanks, I already saw that.
But there is no SWC or ANE.
I attached the path to AIR and that's not enough.
import flash.media.AVSpeechSynthesizer;
import flash.media.AVSpeechUtterance;
var synthesizer:AVSpeechSynthesizer = new AVSpeechSynthesizer();
var utterance:AVSpeechUtterance = new AVSpeechUtterance("Hello, world!");
Scéna 1, Layer 'skript', Frame 1, Line 20, Column 19 1172: Definition flash.media:AVSpeechSynthesizer could not be found.
Scéna 1, Layer 'skript', Frame 1, Line 21, Column 19 1172: Definition flash.media:AVSpeechUtterance could not be found.
Does this mean I have to program the ANE addon in xCode?
Copy link to clipboard
Copied
you have the air sdk?
Copy link to clipboard
Copied
I have
Full AIR SDK with new ActionScript Compiler: AIR SDK for MacOS - (50.2.2.5)
Copy link to clipboard
Copied
then add the sdk
Copy link to clipboard
Copied
I already had that Manage Adobe AIR SDK
(is it this?)
Copy link to clipboard
Copied
that looks like the standard air sdk (that doesn't include avfoundation).
Copy link to clipboard
Copied
I have this
https://airsdk.harman.com/api/versions/50.2.2.5/sdks/AIRSDK_MacOS.zip?id=12868
and inside is
lib aot stub AVFoundation.framework
Copy link to clipboard
Copied
why do you have flash.media.avsynthesizer?
is that an adobe class?
Copy link to clipboard
Copied
That's how it was suggested to me.
I just pasted this code:
import flash.media.AVSpeechSynthesizer;
import flash.media.AVSpeechUtterance;
var synthesizer:AVSpeechSynthesizer = new AVSpeechSynthesizer();
var utterance:AVSpeechUtterance = new AVSpeechUtterance("Hello, world!");
Copy link to clipboard
Copied
avspeechsynthesizer is not part of adobe's api. it's an apple api.
Copy link to clipboard
Copied
So I have to program the ANE addon in xCode?
Copy link to clipboard
Copied
i would think that would be the easiest way. you could look for an as3 implementation, but i doubt one exists for avspeechsynthesizer.
why don't you use an as3 speech synthesizer?
Copy link to clipboard
Copied
I tried
https://fabricemontfort.com/voice-recognition-and-speech-synthesis-in-as3-with-air/
but it only works for Android
for iPad reports:
An implementation for native extension 'com.fabricemontfort.air.ezSpeech' required by the application was not found for the target platform.
Copy link to clipboard
Copied
this looks like an ipad (to me), https://www.youtube.com/watch?v=oTcdw3IKMnE&ab_channel=BobSmolenskiWeb%26Apps
Copy link to clipboard
Copied
Thanks
Copy link to clipboard
Copied
did you get it working?
Copy link to clipboard
Copied
No, I gave up.
Thanks
Copy link to clipboard
Copied
Finally it was done.
I generated the ipa in Adobe Animate
instead of a script in the terminal.
Thanks
Copy link to clipboard
Copied
you're welcome.