I am developing a Adobe Flex Application which speeches some given text inside a text box.
Here am supposed to use an inbuilt function or something else, because I dont want to give an outside link to convert the text to speech since Internet connection will not be available.
Sample program written in Air are also applicable
Can any one post some sample code or link?
Thanks in Advance
I ported a HMM based TTS engine to Flash using the Alchemy compiler. Demos, explanation and code are here:
http://www.edobashira.com/2010/01/flitehts-engine-for-flash-hmm-speech_22.html
http://www.lvcsr.com/hts/
https://github.com/edobashira/Flite-hts_engine-for-Flash
I expect that the simplest way will be get some external executables and wrap them into Air or even rewrite in like http://labs.adobe.com/technologies/alchemy/ but look to platform you are oriented, the best choice will be MS TTS engine or something open source like Festival TTS engine.
Related
I am new to Qt in general, and I have been playing with it to get to learn about it since I have to develop a very specific text editor.
I want to know if anyone could help me understand which one is better (or the most indicated) for the development of a rich text editor. I have worked before with C and C++ but Qt Widgets seems like a very step hill for the time being and I am completely new to javascript in general.
Some of the settings that I would need to implement on the text editor for better context are:
Look for the user to be always connected to internet.
Transfer and receive data from another program.
Grant read only to the opened files and then permission to write on them when a button is clicked.
Has to work on linux and windows.
Needs to look great.
My context:
So far I have done a few little applications and even a little rich text editor on Qt Widgets, but since I was having problems with the GUI implementation that I wanted, I started looking for a way to solve it and found that Qt Quick might be the solution.
I have been trying Qt Quick, and for now on looks great, but I do not know if it has the capabilities to do what I have explained before. Or if it is better to use one or another.
I decided to create a new post since the one that I found looking for something similar is from 2014.
Also, the text editor for now only needs to work on desktop, but in a future might be on other devices and embedded systems.
Well i have a project in which gets pics and videos from folders and also i can view them it it and when i view them i want to also see those tags kinda like the camera which took it, dimensions , the ISO, the exposure time and others for pics and camera model framerate and dimensions...
Thanks in advance
I've never seen anything like this in Qt. Anyway, Qt is a C++ framework, you can use whatever library you want to use. QImageMetaData and QMeta are very near Qt style, but can only be used for images (never tried those).
Anyway, I would use the XMP toolkit. You also mentioned videos, so in that case XMP can handle both. It is very simple to use, well documented and fast (license is BSD). It is written in C++, so you can port it on whatever platform you want.
I think Qt itself does not provide a way to extract exif data (which is what I guess you're trying to extract). You could perhaps try QMeta. I have not used this myself, so no guarantees.
Currently I work on localization for a Flex application. From an article I know that you can control the localization with the following FlashVars:
resourceModuleURLs
localeChain
Are there any other FlashVars reserved by Adobe that a Flash/Flex Developer should know about?
I recently was playing with ContextMenuItem and found a list of words that cannot be used for a caption or label in a ContextMenuItem. Not sure if it helps.
Save
Zoom In
Zoom Out
100%
Show All
Quality
Play
Loop
Rewind
Forward
Back
Movie not loaded
About
Print
Show Redraw Regions
Debugger
Undo
Cut
Copy
Paste
Delete
Select All
Open
Open in new window
Copy link
Adobe
Macromedia
Flash Player
Settings
Also a hack was suggested here, although I never tried it personally.
This article has a fairly easy tutorial. The conversation in the comments will cover a few best practices for you as well.
Here is an adobe livedoc on runtime localization that you may not have seen yet either.
This final link provides an update on the changes in the localization API made in Flex 3 and documents the deprecated and new classes/methods, etc. (a list with examples is at the bottom of the document).
On a side note if anyone is looking for a tool to help out with translations David Deraedt wrote some nice air apps called Lupo Localization Studio that are reasonably inexpensive.
Is there any way where i can create a thumbnail image from a flash movie file(flv /swf) [NOT FROM A VIDEO File ] in ASP.NET ? Any samples of implementation ?
you can use ffmpeg to create thumbnails of the flash video
For .flv you can use ffmpeg to convert parts of the video (e.g. one frame) into an image (sequence)
I've used it as command-line application by calling Process.Start(), but there is at least one wrapper for .NET (I haven't tested it myself):
http://www.codeplex.com/ffmpegdotnet
For .swf I don't know any way to achieve this without some Adobe tool.
for flv it can be done easily, as others mentioned ...
for swf, it depends HIGHLY on the swf ... if the swfs visual appearence is determined by code, there is no other way than to embed a flash player in you app and either let the flash player make the snapshots, encode them as JPEG/PNG, and send them somewhere using TCP or LocalConnection (a flash<->flash communication connection, which can be used with C# as well) or try to somehow grab its output buffer yourself ... the first possibility should be no more than 10-20 lines of actionscript code ... don't know about the latter ...
other than that, you might use an external command line converter ... there are a few floating around the web ...
greetz
back2dos
Take a look at this article, it should point you in the right direction. It uses SharpFFmpeg to extract thumbnail images from movie clips from a variety of formats.
the only way to get an image, is to use a full flash client that starts playing and allows you to capture the first frame.
I would take a close look at flirt (they actually have an example that renders pngs)
Maybe some of the other flash libraries may be of help ( swfdec gnash swift tools gplflash)
Gnash is probably the best choice since its the most mature project out there, but i do not know how easy it is to integrate into command line tools or into your own projects.
We have been working on this in my company, and we got a proof of concept working pretty fast (but the project we made it for is on hold right now). I am not able to share the code, but I can give you some pointers.
It is not pure ASP.NET, but maybe you can still use it. We made a windows service that can be called from ASP.NET.
Basicly you install the flash plugin on the server, the windows services can then simply open the swf through the swf ActiveX component and then you can grap a picture of the whole thing. It works pretty well, notice that you do not have to actually render the ActiveX component on screen to capture the picture.
Check out this post. It does not tell you everything but I guess it provides the ground work required for it. You probably have to figure out how to get the object tag out of the flash-html you are trying to download from a web page. After that you'd have to figure out when to capture the frames. Its a long ride however. You don't need the asp.net part. Just concentrate on the windows project part. Hope this helps. :)
I let user enter some code in my Flex3 (Flash 10) app and I want to do syntax highlighting.
Is there any open-source library that would help me?
I'll need a Lua syntax support, but I can add it myself if library has a resonable interface to do this.
Update on 21 Jan, 2009:
Check out Anirudh's port of google-code-prettify to ActionScript3, it has a very good example app as well.
I guess this wasn't even feasible till now.
With the new Flash Text Engine, maybe such text-based features will start showing up, and hopefully open source libraries that work like the FlashEff library.
I also wanted to do syntax highlighting, I found a example which works
http://labs.searchcoders.com/text/
You will need to take their actionscript code and when people change the text in your text area then you will need to re-draw the syntax highlighting.
Basically I am doing this as I'm making my own IDE/Language in FLEX.
Try this: http://www.flashtexteditor.com/ftf/
or this:
http://www.matthijskamstra.nl/blog/index.php/2008/06/04/actionscript-syntax-highlighting/