Audio capture and converting the audio data to .wav file
hi,
i am new to applet and javax.sound and trying to build online recorder SDK in applet. I could captured the audio data and play the sound from microphone and also store the audio data to .wav file successfully. But when try to play that file from Window Media Player, i got the message "Windows Media Player cannot play the file. The file is either corrupt or the Player does not support the format you are trying to play." I have tried it all in different way but it's not working for last 5-6 days. Is there anyone who could help me , my work is stocked b'coz of this.
Thanks
this is the thread in which i am storing the audio data from audio stream to .wav file
class CaptureThread extends Thread{
public void run(){
AudioFileFormat.Type fileType = AudioFileFormat.Type.WAVE;
File audioFile = new File("junk.wav");
try{
final AudioFormat format = getFormat();
line.open(format);
line.start();
AudioSystem.write(
new AudioInputStream(line),
fileType,audioFile);
}catch (Exception e){
e.printStackTrace();
}//end catch
}//end run
}//end inner class CaptureThread
Similar Messages
-
I was trying to free up space on my internal storage, so when I created files in Garage Band, I thought it would be a great idea to store them in my external hard drive. However, I now wanted to retrieve my files and burn them to a cd. When I dragged and dropped them to iTunes, they showed up in my playlist, but when I tried to burn the playlist, I got a message telling me there were no files in the playlist. Then I looked into putting them back into Garage Band and transferring from there to iTunes. But do not know how to do this, or even if I can do this. Do I have to always convert my aiff files to either wav or mpe files before I store them? Is it a lost cause for me now? Would really appreciate help on this.
On the external drive, in the Finder, do a get Info on one of those & report size, where, etc.
Also, if you double click on one, does iTunes play it?
You could save some space without losing quality by converting them to Apple Lossless. -
i have LR from 2 through 4.4, I am simply trying to adjust CR2s, and convert the them JPEG. LR says my Perfectly Clear is expired but my update is up to date and all paid for. What is Perfectly Clear and how do i get this puppy to be part of the team?
Perfectly Clear is a 3rd party commercial plugin for Lightroom.
http://www.athentech.com/products/plugins/
Have you ever installed it as a trial in the past? -
Converting raw files into tiffs and preserving the orig. date created
How do I get the original date created to show up in folders when converting raw files into tiffs? Once converted the original date created is in the "file info" window but does not show up as the original date created in the designated folder. It is displayed as the same date as date modified.
Thanks Mylenium
As Mylenium has said, this information can be added later by various means. It will also depend on the software you are using on what date it is reading!
As an example there are:
The files date created
Photoshop schema DateCreated
EXIF schema DateTimeOriginal
XMP schema CreateDate
For an external tool you can use ExifTool http://www.sno.phy.queensu.ca/~phil/exiftool/
or you could try to get a script written in the Photoshop or Bridge scripting forums. -
Need to convert the binary data in blob field to readable format
Hi,
We need to convert the Binary data in the BLOB field to readable format and need to display it in Oracle Apps Environment,does anybody come across the similar requirement.
please advise, thanks in advance.
Regards,
Babu.You could use standard Attachments functionality here ... if the blob is not in FND_LOBS, insert into FND_LOBS, fnd_attached_documents etc to enable viewing via "Attachments" to the entity the blob is related to.
Gareth -
How Do i create a list that will show in a dropdown box with the list being pulled from another tab and not the cell data format junk?
I currently run OS X 10.10.1
Now i have been trying to work on this for a while now and what i want to do should be simple but its apparently not.
Here is an example of what i want to happen.
I will have 2 tabs: Contact | Sales
Now Contacts will have the list of names and various information about a customer, While Sales will have one drop-down box for each Cell Row that will show the names of the person in tab contacts
for what i am wanting to do i cant use the data format pop-up menu because the list is edited everyday several times a day.
Now how do i do this, Excel can do this so how can numbers do it?Hi Shegra,
Paste this into a applescript editor window and run it from there. In the script you may need to adjust the four properties to agree with your spreadsheet. Let me know if you have any questions.
quinn
Script starts:
-- This script converts column A in one table into an alphabetized list of popups. It copies the last cell in that column. Then reverts the column to text. It then refreshes popups in column A of a data table starting with a user defined row.
property DataEntrySheet : "Sheet 1" --name of sheet with popups to be refreshed
property DataEntryTable : "Sales" --name of table with popups to be refreshed
set copyRange to {}
property PopValueSheet : "Sheet 1" --name of sheet with popup values table
property PopValueTable : "Contacts" --name of table with popup values
set PopStartRow to {}
tell application "Numbers"
set d to front document
set ps to d's sheet PopValueSheet
set pt to ps's table PopValueTable
set s to d's sheet DataEntrySheet
set t to s's table DataEntryTable
set tf to t's filtered --this records filter setting on data Entry Table
display dialog "Start from row #..." default answer "" with icon 1 -- with icon file "Path:to:my.icon.icns" --a Week # row
set PopStartRow to {text returned of result}
tell pt --convert list to alphabetized popups
set ptRows to count rows
set copyRange to ("A2:" & name of cell ptRows of column "A")
set selection range to range copyRange
set selection range's format to text
sort by column 1 direction ascending
set selection range's format to pop up menu
-- popupsmade
set selection range to cell ptRows of column 1 of pt
set v to value of cell ptRows of pt
end tell
activate application "Numbers"
tell application "System Events" to keystroke "c" using command down
tell pt
set selection range to range copyRange
set selection range's format to text
end tell
tell t
set filtered to false
set tRows to count rows
set pasteRange to ((name of cell PopStartRow of column "A") & ":" & (name of cell tRows of column "A"))
set selection range to range pasteRange
tell application "System Events" to keystroke "v" using command down
set filtered to tf
end tell
end tell -
Deleted and adjusted the Master data table, sid table and text table
Deleted and adjusted the master data table, sid table and text table of an zinfoobject after removing and adding attributes to that zinfoobject and was trying to activate it and system was giving me messages that cannot activate infoobject something like this.
So, i deleted and adjusted the master data table, sid table and text table. Since then getting messages right after executing the query because in that query that infoobject is getting used.
So the messages i am getting is:
SID 9 for characteristic Zinfoobject could not be converted CL_RSDM_READ_MASTER_DATA->_SIDVAL_DIRECT_READ2
System error in program SAPLRRK0 and form MEGA_SORT_M_02-02- (see long text)
Please help me in fixing this whole thing.
Thanks
SAPBWSAP BW,
After adjusting your Master Data IOBJ and deleting and reloading the data - run a change run to adjust the references to the SIDs and then see if your query runs - run program RSDDS_AGGREGATES_MAINTAIN from se38 and select your IOBJ in the next screen..
Arun
Assign points if useful
P.S I did notice that in your earlier post for the same topic - you have had 12 answers / suggestions Please maintain only one thread as previously suggested..
My 0.02
Message was edited by:
Arun Varadarajan -
How do you save and view the GPS data of imported photos?
The photos I took on my iphone have location data that can be viewed through the camera application but I haven't been able to see it when I've imported it onto my computer. I tried importing through iPhoto and Image Capture (which lists the GPS data) but neither show up in the Places tab in iPhoto.
Is there a better way to view or save the location of the photos?iPhoto>Preferences>Advanced>Look Up Places>Automatically.
-
Trying to restore after getting a new hard drive. I can see the backup on the Time Capsule and on the correct date but it is Greyed out. That is it wont let me open it and restore the machine. Have tried also Migration Assistant, no luck.
https://discussions.apple.com/thread/5210788?tstart=0
At startup hold down the Command+Option/Alt+r keys until you see a globe on the screen. Then use disk utility to partition and format the drive HSF+ and then select Reinstall Mac OS X. whatever version of OS X that originally came on your system will be installed and then you can upgrade back to Mavericks. -
Having arranged some scanned pictures in an album in I-Photo how can I keep them in the order I have chosen when I move the album. They all have the scan date and not the taken date and move to new positions if I move them from one album to another.
Is there any way to re-number them in the order I have chosen so that they can then be sorted by number? The scans are all from pre-digital images that I wish to move to a photobook and I don't want to have to organise them twice!
Thanks for any suggestions.I was a bit short, Chris, sorry. It is limited, what can be posted, when typing on an iPad.
Now I am back on my Mac. I meant the following: Batch Change the date for a large range of photos, that should have a date stepped in increments.
Select all Photos at once and use the command "Photos > Batch Change".
Then set the date for the first photo and select an increment, e.g. one minute.
Now all photos will get a new date assigned, incremented by one minute, in the sequence you have selected. So you will be able to sort them by date. This way it will be unnecessary to change the titles or filenames. -
can we with ligthroom have the sofware set up on multiples computer mac and mc and share the same dat base library?
No, a Lightroom catalog cannot be on a networked drive, and can only be accessed by a single user at a time.
-
i have an ipad 2 and want to put my dvds onto the ipad. i have downloaded handbrake and converted the file into mpeg4 file but i cannot get the file to open in itunes
I have the same problem , i've converted my videos to mp4 , by using different programmes and tried to open them in itunes but it didnt .
Some people suggested the following although it didnt help me , it might help you
One suggested to paste the videos that you want in automatically add to itune ( go to your music folder m then click on itunes , then itunes media , and you will find it there )
Others suggested to o to the ontrol panal , then programmes and features m then lick on quick time (. Or itunes) then Change then repair
If it didnt help. And you find another method m please let me know
Thank you -
Creating remote objects and passing the retrieved data to modules
I found at this Adobe tutorial a nice "RemoteService" class that creates a RemoteObject and contains the functions for handling the result and fault events. If I wanted to use this approach, how could I pass the data from the result handler to interfaces that modules from the main application could use?
I could put the RemoteService/RemoteObject in the modules, but (in my opinion- and I could be wrong) the best design seems to be using the remote calls in the main app and passing the data along to the modules.
Ultimately, I would like to know what the "best practices" are for creating remote objects and passing the retrieved data to modules
Thanks!public void mouseClicked(MouseEvent e) {
X x = new X(e.getX(), e.getY());
}I don't see the difficulty. -
Date fields and compare and get the later date of the fields
I am trying to compare these date fields and compare and get the later date of the fields
Tables are
TABCASER
TABCASER1
EVCASERS
Field
Are
TABCASER1.CASER_no
The dates are to be compared and then get the records with the highest or latest date value.
TABCASER1.CASERRECIEVEDDATE
EVCASERS.FINALEVDATES
EVCASERS.PUBLICATIONDATE
EVCASERS.PUBLICATIONDATE
TABCASER.COMPAREACCEPDATE
I have this code but I am trying to figure out what it all means.
I have several questions.
1.
1. greatest it is used here to compare right? How do I then output this ? do I store it to a var (coldfusion) ultimately , I wish to send it to a page of records
2. is it necessary to use todate? And to_date? What does this do?
3. decode, is this necessary too. What does this do? NULL?
4.
5.
6. when I do get the query results how do I send it to coldsuion and out put to a display.
Someone sent me this code.
is there abetter way of doing this? To compare the dates and store in a var to display. thanks
Here is my code below:
Greatest(
CASE
WHEN INSTR(TABCASER1.CASER_no,'-CE') > 0 THEN
decode(TABCASER1.CASERRECIEVEDDATE,NULL,TO_DATE('01/01/1900','mm/dd/yyyy'),TABCASER1.CASERRECIEVEDDATE)
WHEN INSTR(TABCASER1.CASER_no,'-ERNIE') > 0 THEN
decode(EVCASERS.FINALEVDATES,NULL,TO_DATE('01/01/1900','mm/dd/yyyy'),EVCASERS.FINALEVDATES)
WHEN INSTR(TABCASER1.CASER_no,'-MONIE') > 0 THEN
decode(EVCASERS.PUBLICATIONDATE,NULL,TO_DATE('01/01/1900','mm/dd/yyyy'),EVCASERS.PUBLICATIONDATE)
WHEN INSTR(TABCASER1.CASER_no,'-NADINE') > 0 THEN
decode(EVCASERS.PUBLICATIONDATE,NULL,TO_DATE('01/01/1900','mm/dd/yyyy'),EVCASERS.PUBLICATIONDATE)
ELSE
decode(TABCASER.COMPAREACCEPDATE,NULL,TO_DATE('01/01/1900','mm/dd/yyyy'),TABCASER.COMPAREACCEPDATE)
END
,decode(TABCASER.COMPAREACCEPDATE,NULL,TO_DATE('01/01/1900','mm/dd/yyyy'),TABCASER.COMPAREACCEPDATE))
between TO_DATE('#dateformat(form.startDate,"mm/dd/yyyy")#','MM/DD/YYYY') and TO_DATE('#dateformat(form.endDate,"mm/dd/yyyy")#','MM/DD/YYYY')
is there abetter way of doing this? To compare the dates and store in a var to display. thanksHi
If you have date datatypes than:
select
greatest(TABCASER1.CASERRECIEVEDDATE, EVCASERS.FINALEVDATES, EVCASERS.PUBLICATIONDATE, EVCASERS.PUBLICATIONDATE, TABCASER.COMPAREACCEPDATE)
from TABCASER, TABCASER1, EVCASERS
where ...-- join and other conditions
1. greatest is good enough
2. to_date creates date dataype from string with the format of format string ('mm/dd/yyyy')
3. decode(a, b, c, d) is a function: if a = b than return c else d. NULL means that there is no data in the cell of the table.
6. to format the date for display use to_char function with format modell as in the to_date function.
Ott Karesz
http://www.trendo-kft.hu -
Check the modification date of a file and compare it to the current date
Hey everyone,
I'm writing a script that compares the modification date of a file to the current date, and performs actions based on whether the file was modified 7 days ago or not. I haven't been able to figure out exactly how to do this.
I haven't been able to find much in the way of this online, and I am not that familiar with manipulating dates and whatnot. I was able to get a bit of it, posted below:
currentDate=`date +%b-%d`
fileDate=`ls -l ~/.backup.txt | awk '{ print $6, $7 }'`
echo "$fileDate"
echo "$currentDate"
if [ "$fileDate" <= "$currentDate" ]; then
echo "old enough to run script"
else
echo "not old enough yet"
fi
Of course, this doesn't work. Any help would be much appreciated. This is for Leopard.
TIA,
Andrewfind ~/.backup.txt -mtime +7 -exec yourscript {} ;
You may need to play with the +7 value to get the exact number of days old the file needs to be.
The find command will accept a directory (actually it is frequently used with directories) and will find all files in that directory and any subdirectories below that match the find selection critiera.
So you could do something like
find ~ -mtime +7 | xargs yourscript
or
find ~ -mtime +7 -name "*.txt" | xargs yourscript
and if your script does not accept multiple filenames on the command line, you can use
find ~ -mtime +7 | xargs -n 1 yourscript
and if your file names have spaces in them, you can use
find ~ -mtime +7 -print0 | xargs -0 -n 1 yourscript
Maybe you are looking for
-
Wrong ipod color displayed when I sync with iTunes
Anyone know a way around this? I own a white iPod video classic 30G. I had the battery changed a few months ago, and since then, when I sync with iTunes, it shows up as a black ipod. I'd appreciate any information anyone has! Thanks.
-
Is there a way to play streaming wmv on iPad through safari?
Is there a way to play streaming wmv on iPad through safari?
-
Support for using TNSNAMES with Oracle Thin Driver?
Hi. In the official Oracle JDBC FAQ (http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm), they say that from the "10.2.0.1.0" release, the Thin driver hast support for using TNSNAMES entries. Thus, you can use URLs like this: jd
-
Unable to view attachment​s
I am unable to view attachments emailed to my Curve. Info messages pops up and says, "More request cannot be completed. Service book information not found." What the heck does that mean. I've looked at every icon and menue and submenu, I do not k
-
What do you guys think about buying the Apple Care with a new Mac Pro? I already ordered mine w/o, but I am now considering calling to add it to my order. I am on a tight budget, is it worth it?