Playing audio in MIDP (using Free TTS)

hi...i'm using the Free TTS to convert the text from an MIDP application to speech...for this, i'm replacing the client in the Free TTS with my own MIDP client.
In the free TTS, the server performs the conversion and sends the sampled speech back to the client, and the client plays it.
My query is-
1) What is the format of the sampled speech being sent back to the client?
2) Is there any way i can get my MIDP client to play the speech audio the way Free TTS client does?
How can i p[ay audio from sampled speech in j2me?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Hi Kranthi
You don't need Java, you need Javascript to open another window ;-)
http://w3schools.com/htmldom/met_win_open.asp

Similar Messages

  • I write a program to play audio file, it use sun.audio.*, but it can play

    i write a program to play audio file, it use sun.audio.*, but it can play ,can you tell me what error is it ?
    import sun.audio.*;
    import java.net.*;
    import java.io.*;
    import java.io.FileInputStream;
    public static void alertAudio(String fileName)
    try{
    InputStream in = new FileInputStream(fileName);
    AudioStream audio = new AudioStream(in);
    AudioPlayer.player.start(audio);
    catch(Exception e)
    System.out.println(e);
    public static void main (String argv[])
    String fileName = "test.au";
    alertAudio(fileName);
    System.out.println("close");

    help help me

  • Playing audio books loaded using Overdrive Media Console

    I have iTunes 10.1.0.54, Overdrive Media Console 3.2.0.5.... I checked out a book from the Maine online library and used Overdirve Media Console to put it on my iPod Shuffle 4th Generation 1.0.1.... If I play the book from iTunes, it works fine.... Playing the book from the iPod, the books loops on part 1 for 6.... Any ideas?

    The answer is there is no answer.....
    I contacted Overdrive support and they confirmed that iPod Shuffle 4th Generation is NOT compatible with Overdrive Media Console at this time.... They did not indicate if they will address the problems in the future...
    For a six part book, it will load to the iPod Shuffle, but when you try to listen it will loop on the first part and ignore the other five parts... If you fast forward, it will transfer to breaks within the first part....
    I also have an iPod Shuffle 2nd Generation and it works fine on that device...

  • I can no longer play songs on iTunes using Win 8 PC

    When I click to play a song from iTunes on my Windows 8 PC it just appears to hang.  I can no longer preview songs from the iTunes Store either, no sound comes out and the bar stays on 0:00.  This was working fine in the past, not sure what changed.  Now I'm afraid to try and synch my iPod and iPhone to the PC since as of now these other devices are working fine. Help!

    Update:  After having problems playing audio and video using several different browsers and apps, I realized that the problem was probably not iTunes or Apple related.  I rebooted several times, to no avail, but the last reboot inexplicably seemed to do the trick.  Everything is working OK again, at least for now.  Weird but I'll take it!

  • How do i play multiple audio files simultaneously using AudioQueue?

    I've basically gutted what I don't need from the "Speakhere" sample app and I'm left with something I can use to play audio files. I converted wav files to aiff and then renamed the aiff to caf (Just in case this matters). I even tried shortening the files to 10 seconds long, but no difference. I am able to play files singly, but am unable to play more than one file at the same time. When I try to play multiple files, the first one plays correctly but the second will play a horrible long beeping sound. Sounds almost like a buzzer and sometimes will sound like a high pitched beep. My code has all the audio components like the speakhere app (AudioQueueObject, AudioPlayer, AudioViewController). I've changed the AudioViewController to be just my "AudioController" class where when I initialize, I pass in the name of the file and it replaces this line of code:
    CFStringRef fileString = (CFStringRef) [NSString stringWithFormat: @"%@/Recording.caf", self.recordingDirectory];
    with this:
    CFStringRef fileString = (CFStringRef) [NSString stringWithFormat: fileName, self.recordingDirectory];
    Any suggestions? I've been yanking my hair out trying to figure this out and I simply can't. I'm about ready to pull an "Office Space" but instead of beating up a printer, I'm going to destroy my macbook.
    *NOTE: I have only tried this in the simulator, but I'm assuming it will do this on the real thing so I haven't bothered to try.

    Unless I'm mistaken, you need one AudioQueue object for each audio file you want to play. In one of my apps, I basically copied the code provided in the [AudioQueue programming guide|http://developer.apple.com/iphone/library/documentation/MusicAudio/Concep tual/AudioQueueProgrammingGuide/AQPlayback/chapter4_section_1.html#//appleref/doc/uid/TP40005343-CH3-SW1] and made a wrapper object for playback. So then you can do something like this:
    MyAudioManager *manager1 = [[MyAudioManager alloc] initWithFile:@"file1.caf"];
    [manager1 play];
    MyAudioManager *manager2 = [[MyAudioManager alloc] initWithFile:@"file2.caf"];
    [manager2 play];
    // etc...
    If you want to play short files (~10s or less), you can use the simpler AudioServices functions along with SystemSoundID's. It will work fine if you have playback from AudioQueue and AudioServices at the same time.

  • Can I use Optical Audio alongside a speakerless monitor to play audio through speakers?

    I have an Apple TV 3 and so far I am relatively pleased. However.. I have no sound, this just about renders my Apple TV useless. Is it possible to use the Optical Audio cable to play sound from films, music etc. while still having the Apple TV connected to the Monitor via HDMI? Do you have any suggestions as to what speakers would be good? (looking at around £50 - £100) I was thinking of getting some of the Bose Companion 2 monitor speakers and then using a DAC to play audio from the Apple TV to the speakers. Would this work? If not, does anybody have any other suggestions?
    P.S. I can't plug speakers into my monitor for some absurd, annoying reason unbeknown to society

    My ATV is connected to the tv with hdmi
    My optical is connected to my stereo
    I mute my tv and only play out of the stereo

  • I have a docking station to charge and play audio from my ipod touch 3rd gen.  Just bought a new ipod touch 5 th gen.  Is there a converter/ adapter available so I can continue to use my dock?

    I have a docking station to charge and play audio from my ipod touch 3rd gen.  Is there an adapter available for the ipod touch 5th gen so that I can keep using the old dock?

    Lightning  Adopters
    One of these adopters/cables should work:
    http://store.apple.com/us/product/MD824ZM/A/lightning-to-30-pin-adapter-02-m?fno de=45
    http://store.apple.com/us/product/MD823ZM/A/lightning-to-30-pin-adapter?fnode=45

  • Problem with playing audio data using Real Player

    i've seen the intruction for playing video data (.rm) using real player and it works. Then i tried to play audio data (.wav, .dat, .mp3) with real player, but it didn't work.
    These are some codes i've wrote:
    ------------------------------------------- BEGIN PL/SQL CODES---------------------------------------
    CREATE TABLE SONGS
    ( Item_ID number not null PRIMARY KEY,     
    Audio ordsys.ordaudio
    create or replace procedure load_audio(id integer, filename in varchar2) as
    obj ORDSYS.ORDAudio;
    ctx RAW(4000) := NULL;
    begin
    INSERT INTO SONGS VALUES(ID,
         ORDSYS.ORDAudio.init());
    SELECT audio into obj from Songs
    where item_id = id FOR UPDATE;
    obj.setSource('FILE','AUDIODIR', filename);     
    Obj.setDescription('A movie trailer');
    Obj.setMimeType('audio/x-pn-realaudio');
    Obj.setFormat('Real Media File Format');
    obj.import(ctx);
    UPDATE Songs
         SET audio=obj WHERE item_id=id;
    COMMIT;
    END;
    show errors;
    truncate table songs;
    exec load_audio(1,'aud1.wav');
    exec load_audio(2,'aud2.mp3');
    exec load_audio(3,'testaud.dat');
    -- just for comparison, i put a video file (.rm)
    exec load_audio(4,'autorace.rm');
    commit;
    show errors;
    create or replace procedure get_audio(
         audio_id in varchar2,
         mimetype out varchar2,
         data out blob) as
         tempBLOB BLOB;
         s varchar2(200);
    begin
    -- Deliver audio and mimetype
    select t.audio.getcontent(), t.audio.getmimetype()
    into tempBLOB, s
    from songs t where t.item_id = audio_id;
    data := tempBLOB;
    mimetype := s;
    end;
    show errors;
    ---------------------------------------- END of PL/SQL CODES-------------------------------------
    -----------------------------------MOUNTPOINT at FILESYSTEM rmsever.cfg-------------------
    <List Name="pn-oracle-audio">
    <Var Database="oracle"/>
    <Var HeaderCacheSize="2048"/>
    <Var LobFetchSize="32768"/>
    <Var MaxCachedConnections="1"/>
    <Var MountPoint="/dbaudio/"/>
    <Var Password="ZGF2aWQ="/>
    <Var ShortName="pn-oracle"/>
    <Var SQL="get_audio"/>
    <Var Username="skripsi"/>
    </List>
    ----------------------------------------End Of MOUNTPOINT----------------------------------
    then in the real player, i tried some urls :
    http://david:88/ramgen/dbaudio/1 --> it didn't work, it was said invalid path
    http://david:88/ramgen/dbaudio/2 ----> it didn't work, it was said invalid path
    http://david:88/ramgen/dbaudio/3 ----> it didn't work, it was said invalid path
    http://david:88/ramgen/dbaudio/4 ----> it worked
    did i put a wrong url?
    does the http://..../ramgen/... path is just for ram file?
    can anyone show me the way to play audio data using real player?
    Thanx before.

    Yes, realserver expects an exact mimetype.
    to make matters worse, it expects audio/x-pn-realaudio (an audio mimetype) for video!?!?!
    Seems the code inside maps multiple file extensions to some mime type. Only one is allowed.
    I have used the unix strings commands in teh plugins directory to find the exact mime type realserver is expecting. The file format plugins have this information in them.
    Larry

  • TS1718 Is anyone else experiencing trouble playing video in itunes?  Video intermittenly pause and plays without audio?  Video used to play fine this problem only started since the last version of itunes, version 7.  Just updated to v. 11 still having sam

    Is anyone else experiencing trouble playing video in itunes?  Video intermittenly pauses and also plays with not audio.  Video used to play fine.  This problem only started since I upgraded to version 7.  I have not used itunes since then because I couldn't watch anything without experiencing these problems.  I was waiting for the next version to come out and hoped it would fix the problems I was having, but no such luck.  I just upgraded to the latest version, version 11 and I'm still having the same problems.  Anyone else having these same issues and if so, any solutions?

    Is anyone else experiencing trouble playing video in itunes?  Video intermittenly pauses and also plays with not audio.  Video used to play fine.  This problem only started since I upgraded to version 7.  I have not used itunes since then because I couldn't watch anything without experiencing these problems.  I was waiting for the next version to come out and hoped it would fix the problems I was having, but no such luck.  I just upgraded to the latest version, version 11 and I'm still having the same problems.  Anyone else having these same issues and if so, any solutions?

  • HT5100 I have an ipod shuffle, obviously it does not play video, can i use my shuffle to play the audio part of an i-tune u course that normally comes in video format? To put it differently, if i-tunes course available as video can I download the audio po

    I have an ipod shuffle, obviously it does not play video, can i use my shuffle to play the audio part of an i-tune u course that normally comes in video format? To put it differently, if i-tunes course available as video can I download the audio portion of an itunes video?

    Welcome to the Apple Community.
    Unfortunately not.

  • Is it possible to play audio from video in the background while using a different app?

    I would like to be ale to play audio from a video file in videos (or av player hd) in the background whie using a diffent app in my iPad 2. (ie watching a video while taking notes on the content or highlighting an e-textbook).
    Is this possible? Either through the original iPad functionality or by downloading a separate app?
    Thanks,
    mji

    Is it important that the music come from a video, or are you just looking to listen to music in the background, while doing something else.  If the later, you can certainly play music from the Music App, Pandora, or iHeart Radio, etc., and with the music playing, tap your home button to go to your home page and open anything else you want and the music will continue.
    I don't have any videos to try out right now, but you try the same thing out and if the music continues, it works.  If it doesn't, it doesn't.

  • I am using FC Express HD, and for some reason, when I export a Quicktime movie, the final movie will only play audio, and the video is black.  I only get the actual video if I export as self contained, or if I exportusing quicktime conversion. Why?

    I am using FC Express HD, and for some reason, when I export a Quicktime movie, the final movie will only play audio, and the video is black.  I only get the actual video if I export as self contained, or if I exportusing quicktime conversion. Why?

    I am using FC Express HD, and for some reason, when I export a Quicktime movie, the final movie will only play audio, and the video is black.  I only get the actual video if I export as self contained, or if I exportusing quicktime conversion. Why?

  • Load and Play audio file (either sound or music) from my computer using DirectSound in C++

    #include "stdafx.h"
    #include <dsound.h>
    class AudioPlayer
    private:
    unsigned long long start_point,
    playback_point,
    break_point;
    bool now_playing, loop, ignore_start_point;
    int speed;
    //and any data that stores an audio (can be either sound or music)
    public:
    void Play_or_Resume(); //Either starts playing or resumes the audio stored in private (Runs a thread that either increments or decrements the playback_point by the speed member and sets the now_playing member to true).
    void Pause(); //Stops playing the audio stored in private until Play_or_Resume method is called (Just suspends the thread that was mentioned above and sets the now_playing member to false).
    void Play(unsigned long long from = 0, unsigned long long length = -1, bool move_start_point_too = true);
    //Plays audio from the value of the 'from' parameter along the value of the 'length' parameter and sets the now_playing member to true.
    //Playback point is pushed to the value of the 'from' parameter, and break point is pushed to the result of from + length.
    //If move_start_point_too parameter is true, then also start point is pushed where playback point is pushed too (to the value of the 'from' parameter).
    //Also the value of the 'from' parameter is an absolute position, but otherwise (if move_start_point_too parameter is false) it ('from' parameter) is relative to start point's position until it (start point) is ignored.
    //The value of the 'from' parameter never can be negative!
    void MovePlaybackPoint(unsigned long long new_position); //Modifies playback point position that is stored in private to a new position that indicates to sample no. new_position.
    unsigned long long GetPlaybackPointPosition(); //Returns playback point's position that has been alreadyS mentiond above.
    unsigned long long GetLength(); //Returns total number of samples in the audio stored in private.
    void MoveBreakPointTo(unsigned long long new_position); //Moves the break point to a new position that indicates to sample no. new position.
    //If the loop member is false, then audio should always stops playing and also set the now_playing member to false, when playback point reaches the break point, even the Pause method was not called.
    //Then calling again the Play_or_Resume method will bring the playback point back to start point (the default value for this member is zero 0).
    //But if the loop member is true, then playback point just returns to start point immediately and continue playing from there (now_playing remains true and it's value is unchanged).
    //There is a possibility to move the break point to a negative integer, so audio either stops and sets now_playing to false or replays from start point and left now_playing true according to the loop member, at the end of the audio. The default value of break point member is minus one -1 .
    unsigned long long GetBreakpointPosition(); //Returns the position of the break point that has been already mentioned above.
    void MoveStartPointTo(unsigned long long new_position); //Moves the start point to a new position that indicates to sample no. new position.
    unsigned long long GetStartPointPosition(); //Returns the position of the start point that has been already mentioned above.
    void EnableRepeatMode(); //Sets the private loop member to true.
    void DisableRepeatMode(); //Sets the private loop member to false.
    void ToggleRepeatMode(); //If loop was true before calling this function, so after it is false. Otherwrise it is true.
    bool IsRepeating(); //Returns whether audio repeats itself (from start point to either breakpoint or end of buffer). This function just returns the value of the loop member.
    void SetSpeed(int num_sam_per_sec); //Modifies the number of samples that are played in every second.
    //If number (integer) is negative, then audio is played in backward.
    //When playback point reaches start point, then it is transferred to break point if it's position is not negative. Otherwise it is transferred to the end of the audio buffer.
    void IgnoreStartPoint(); //Sets the ignore_start_point member to true. Then all methods always relate to start point as zero (even if it's value is not zero).
    void ReferStartPoint(); //Sets the ignore_start_point member to false.
    bool IsStartPointIgnored(); //Returns whether start point is ignored or not. This method just returns the value of ignore_start_point member.
    int GetSpeed(); //Returns the number of samples that are played in every second.
    void SetNumberOfChannels(byte new_value); //Modifies number of channels.
    byte GetNumberOfChannels(); //Returns number of channels.
    void SetBlockAlign(byte new_value); //Sets block align.
    byte GetBlockAlign(); //Returns block align.
    const char* LoadAudioFromComputer(const char* path_and_name_of_file, AudioPlayer* lpAp, bool auto_start_playing = true);
    //This function fills the instance pointed by 'lpAp' parameter with the data of the audio file redirected by 'path_and_name_of_file' parameter, and calls the Play_or_Resume method of this instance if auto_start_playing is true.
    //If the function succeeds, then it returns "succeed". Otherwise (if the function fails) then it returns an error string that describes the problem (the reason it failed). It can be sent to output, so it can be read, by either call to MessageBox, printf, std::cout, TextOut, DrawText functions and etc.
    //The function can fails, because the file was not exist, or could not be opened for reading, because it was opened by another process, or the file was either encrypted or protected, or corrupted, or was not audio file, but text, image and etc.
    I want to implement all methods of the AudioPlayer class and the LoadAudioFromComputer function by myself using DirectSound (the <dsound.h>) and all functions, interfaces, methods, structures, etc... that this header provides, but I don't know how! I
    need your help! This is difficult for me to find in the internet the information I need to do this. MSDN is teaching all this stuff, but this is too difficult! I need you to implement all these methods of the AudioPlayer class and the LoadAudioFromComputer
    function for me using DirectSound and the <dsound.h> and the explanations I wrote in comments, and then post the code. I will copy it to mine and read it all to learn. Please use comments so I can understand. I will thank and appreciate anyone who will
    donate his time to help me and do this for me! :D

    Microsoft pulled the plug on DirectSound HAL in Vista due to lack of hardware support. The SAL exists for
    software compatibility, good intention but bad performance as there is no longer a direct path from
    DirectSound to audio drivers.
    People choose DirectSound for its Direct-ness
    but there is no reason to choose it now.
    DirectX SDK was integrated
    with WIndows SDK which ships with Visual Studio 2012 so you don't need additional downloads for
    WASAPI and XAudio 2.
    Just look up the documentation for headers/librarieslike every other Windows API you use. If you have a hard time to find the documentation then you need to go to search engines and find search engine tutorials. 
    There are plenty of samples for both WASAPI and XAudio 2, both in the Windows SDK and online. The DirectX team has some suggestions on which to use on their team blog.
    You can find experts for those APIs at the Windows Desktop Pro-Audio Application Development forum and the
    Audio/XACT forum on MSDN (link left out for you to practice your search skills). Again, it is fine to ask for hints but don't ask the whole
    solution. You are competing with others who just need a hint to finish work here. The time spent on working on your assignment would be better spent on helping on giving hints to others. 
    Visual C++ MVP

  • HT4072 Can I play audio from movies in the DVD player using iTunes or Airplay?

    I would like to play audio from movies in the MacBook DVD player using iTunes or Airplay? Is this possible?

    Is it important that the music come from a video, or are you just looking to listen to music in the background, while doing something else.  If the later, you can certainly play music from the Music App, Pandora, or iHeart Radio, etc., and with the music playing, tap your home button to go to your home page and open anything else you want and the music will continue.
    I don't have any videos to try out right now, but you try the same thing out and if the music continues, it works.  If it doesn't, it doesn't.

  • Can play audio after last update cant use feedback option either

    Dear Sir after the latest firefox update the most of the audio pop-ups from individual radio stations, from site that I am using religiously to listen to radio from my country of origin, dont play audio. However, I am able to open all audio pop-us when I use explorer. What is the problem and how can I fix it?
    many thanks
    PS I cannot even send this feedback by pressing submit feedback I had to use: ask a new question

    joqueza wrote:This is just frustrating. After doing a system upgrade (which upgraded xorg to version 1.5) I can't use the keyboard anymore. In fact, my screen would freeze also, as long as I was using the latest Xorg version. This machine's card is a geforce2 mx440..
    Perhaps you can find some help here http://wiki.archlinux.org/index.php/Xor … otplugging (or in one of the many threads about xorg 1.5 breaking input devices)
    No Idea about your problem after downgrading (expect just as a guess, there is some problem with xbinkeys when it is autostarted with the window manager -- http://bbs.archlinux.org/viewtopic.php?id=65468).

Maybe you are looking for

  • Is there any Guru that can answer my query please?

    Hi There, Please read this mail carefully an dtry to get my point an dthen please tell me whether it is possible or not? Case 1: OS: Windows XP Pro Modem: 3 COM ADSL Modem (old one) Location: Saudi Arabia Connection: ADSL 256 K Ports: 0, 35 PPPOE Thi

  • Exchange password, what is it and why does my phone keep asking for it?

    For the last two days, my phone periodically wants me to enter an exchange password.  This is the first I ever heard of it so can't figure out what it is.n I though exchange was a Microsoft product so what's it doing on my Apple iPhone.  I just upgra

  • Vendor + customer balances in foreign currency

    Hi all, We need 2 reports which are is pretty similar to the following both: 1.)Vendor balances in local currency Transaction: S_ALR_87012082 2.)Customer balances in local currency Transaction: S_ALR_87012172 The only difference should be, that the 2

  • Why V1 (input tax) apply to PO but not A1

    Hi friends, I am creating PO under a UK company code. to my understanding, I should input A1(output tax code) since this is liability. However, system forced me to input V1(input tax). Why? while I realized A1 has been applied to customer invoice. is

  • PROBLEM IN SUBCONTRACTING P.O

    DEAR CONS   I CREATED A SUBCONTACTING P.O & IN THE COMPONENTS I entered the components & as well as the scrap  from vendor (free item) . The system does not post it. gives a message Update control of movement type is incorrect (entry 101 _ X Q B _ V)