In my android application i want to record an audio file and send to service (ASP service) with smallest size of file.
And I found that .AMR file is one of orginal record files on Android and it has smallest file.
How can I convert .AMR to .WAV on C#.
Related
I have a power point file(.pptx) generated by a program that copies xml files and content files in a slide to other slides. It simply extracts xml files and content files from original power point file and then copies xml files, finally compresses the files as a zip file and renames the file to xxxxx.pptx. (The xml files I mentioned here is, of course, about Office Open XML)
When I open this file in Keynote on Mac OS X, it works well. No error happened.
However when I use PowerPoint application on Mac OS X, the app says "PowerPoint found a problem with content in xxxxx.pptx"
I think there are differences between PowerPoint specs and Keynote specs, so I need to apply the generated pptx file to the PowerPoint specs.
But, the error does not say WHERE or WHAT ERROR IS OCCURRED, but says there are some errors in that file.
So I cannot look for where is damaged in the generated file!
How do I detect the errors in the file or validate the format of it?
I do not want to get 'restore tools' but 'error detection tools'.
I simply used Open XML SDK 2.5 Productivity Tool.
In my situation, it said the Content-Type of xml files was different from expected one when I opened the pptx file. Soon, it occurred to me I forgot to change the data in [Content_Types].xml
After I fixed it, the file is opened without problems now!!
This app also shows codes in C# and validate each xml files individually.
Download Link is here ->
https://www.microsoft.com/en-us/download/details.aspx?id=30425
I love listening to podcast-style audio while walking or in the car, and I love studying with the help of the text-to-speech feature in Mac OS Yosemite. I want to download hour-long audio files to listen to in the car (I have already been accustomed enough to sometimes robotic-sounding tts voices).
How do I download text-to-speech to an audio file such as mp3? I can "speak selected text when the key is pressed" and press option+esc, but shouldn't it be easy to just download the audio (without doing tedious stuff like recording tts audio playing)?
You can try the say command in from the CLI (e.g. via “Terminal.app”). There is a detailed description in the man-page (type in say, right-click on the word and select “Open man page”). The --output-file= option does what you want.
There also is a number of apps that wraps this functionality in one way or another.
You need to save text from "text-to-speech" into a file, then when you will have a text there, you should convert text file to audio file
More information on how to do that, you can read here:
https://cloud.google.com/text-to-speech/docs/quickstart-protocol
How decoding files, you can read here:
https://cloud.google.com/text-to-speech/docs/base64-decoding
I'm making an application that downloads video files from the internet.
The application needs to launch the system's default video player to play these files while they are being downloaded.
I'm not interested in implementing a video (or network) stream to make this work. The videos are being downloaded in sequential order. I need to simulate the process of a user clicking on the video file from file explorer while it is downloading (which always works provided that enough bytes are saved).
To achieve this I spawn a child process that runs
start filepath/filename.avi
but it fails saying the file is in use by another process.
This command also fails if I type it in the cmd while the file is downloading.
However, if I double click the file it will start to play normally in the system's default video player.
What command can I use to make the file open in the system's default video player while it is being downloaded (used by another process)?
Thanks.
Note: files may be of any type, not only .avi like in the example
I have virtual printer driver which creates EMF files from printed stuff. After that my application analyses created EMF files and extracts text information.
Here is the problem: often if customer prints PDF file text information is missing in generated EMF file because PDF printing software replaces non-ascii characters with their graphic representation.
To solve this problem i consider several ways. One of the ways is to extract text directly from source PDF file. But customer's software is not able to put source PDF file to specified directory. It can only print PDF file to selected windows printer.
So my question: is it possible to create virtual printer driver which will just store original PDF file to some directory?
I am used to embed WAV into .exe and Play it using PlaySound(). However, using this method causes the .exe to become pretty big.
Is it possible to do the same with MP3 files and how to do it?
I have taken a look at DirectShow but it seems to be able to play from files only?
I am developing for Windows Mobile 6 Series
You can try to save the mp3 as mp3 with RIFF-WAV header and embed the file in resources. I did not check windows-mobile and a file stored in resources but on Windows XP and separate file the PlaySound of such RIFF-WAV MP3 file works.