How can I convert text to speech in LibGDX? I was thinking about maybe it could be possible by creating somehow a function in libgdx-game-android folder and run this function from common libgdx-game folder?
You can't do this natively inside of LibGDX. However I believe there are text to spech libraries for Java itself. Please see this question
However I'm not sure if this will work on Android
Hope this helps! Good luck!
Related
I have to "convert" some flash projects to HTML5/JS but I don't really know how I can do it :(
This flash projects are little "activities" like this one :
https://www.brainpop.com/artsandmusic/artconcepts/cameras/activity/#=standard
I did some research about it, but i'm a bit lost...
I found other people asking the same question and a lot of responses are to use Haxe/OpenFL and as3hx (https://github.com/HaxeFoundation/as3hx) but I don't really understand how to proceed...
Is it possible to load a .swf file with openfl-swf to create a similar .html file ?
Should I convert AS3 to Haxe3 with as3hx ?
Is there a simple way to just get a graphic render of this activities without any interactivity so I can add manually input text field ?
I never used ActionScript or Haxe before.
If someone has any suggestions i'll be glad to hear it :)
I hope my explanations are clear, english is not my first language, so excuse me for any mistake.
Cheers !
as3hx will convert only as3 code to haxe openfl and may well need hand tweaking. To make the code more flexible try to avoid extending Sprite then potentially it will be easier to use your activity logic in more webgl accelerated haxe solutions like Kha and Luxe.
You probably need clean seperation of the code and the onscreen layout.
To run a fla swf that is mostly graphics in openfl you need to use the haxelib https://github.com/openfl/swf, it can be quite fiddly getting to different children or frames and the gradients are not perfect, just remember when using it that it's not the same as accessing a child normally your using a structure that is a bit different to do that.
Alternatively you may find flump useful it can be used with openflump.
https://github.com/SavedByZero/openflump exports from flash IDE.
It converts lots of your graphics to png sequences in nested structures, it would probably be worth rebuilding textfields yourself.
Openfl js can be slow I suggest you do some tests before committing to a solution, since Kha or Luxe may provide you a more shader modern approach to graphics than a flash emulation api solution, but then all you assets largely need to be images.
I doubt if there is any ideal way but getting your logic in Haxe is really good idea because then you can do c++, c#, js etc.. The first step if you choose openfl is to perhaps to try just porting parts of your code to haxe and then use them as a swc in your current projects this will allow you to gradually check your conversion and fix an issues easily within a haxe flash approach prior to trying to do the same in html haxe. You may find the swf library is not ideal for html5 and that png's are the way to go, Animate now provides export png sequence which I have used in starling as3. Another approach to consider is the away3d plugin for Animate it can convert flash timeline into typescript away3d (2D ) that you can control with javascript code ( even haxe you may have got from as3hx if you remove some of the flash specific haxe and adjust it to work with the away3d 2d but I guess it could be very complex ).
Basically I have an project where I would like to modify some text in a XML file rather than in the document itself.
I've had a Google and all the tutorials lead to AS2 which doesn't work in Flash CC. I've also downloaded some templates off ActiveDen but they are all in AS2.
Anywho is there any good starting points to do this? I'm a total noob at AS but what I'm asking for doesn't sound too hard.
Cheers,
You can always Google using keywords, like writing your question's title, I found this tutorial
Try to follow step by step and I'm sure that you will learn and solve your issue.
Is it possible to extract the text from an image like this?
(I'd like to display it in an textfield afterwards)
Thanks.
Uli
What you're looking for is Optical Character Recognition. Here is a similar question:
OCR Actionscript
Though sadly it has no clear-cut answer. There is no native class/framework for doing it in AS3, though I'm sure it's possible.
This is a task where you'd employ web service. I know Google Docs can OCR an image for you. ABBYY, whose FineReader is one of the best in the business, also provides an OCR web service. Google has open-sourced their OCR software. You can conceivable set it up on your own server.
This is about kiosk contents(Full-Screen).
I'm trying to input some texts in the 'AIR popup-window'(facebook login)
with virtual keyboard(as3.0).
I know the 'HTML loader class' can be a solution, But I think this is different case.
How can I make it? I really need your ideas!
Thank you for read this, and sorry my bad English.
With respect you should really do a thorough search on google or even stackoverflow, as this question has been posed already at least once. Anyway here is a question on the same issue some one answered here:
Flash APIs for Android Platform
Basically it involves a new method in InteractiveObjects that manually invokes the system soft keyboard. Pretty basic stuff. Hope it helps! :)
I've heard about the JavaFX->AWT bridge (or hack) for a moment now.
But examples I find are quite fuzzy or blur to me.
So, if anyone knows an "Hello World" example for this bridge I'd be really interested !
(Just to be clear I don't need a way to embed a Swing component in a JFX animation or to launch a JFX from a Swing based program, I really need to embed some JFX inside a panel).
Thanks in advance ^^
If you need to embed JavaFX inside Swing, I recommend to take a look at this hack.
The link above does not work for JavaFX 1.2, see my blog entry on this.
Nonetheless, this is still a hack.
The JFXtras project is incorporating support for this.