Compare two audio files
hi
i have devloped one web application in Flash Builder 4.
i have recorded the user voice using fms 3.
Already i have one sample voice for pronunciation.
i want to compare the sample voice and user input voice.
i know it's possible in flex
but i don't know how i do.
pls anybody give some ideas
thanks in advance
regards
athi
I'm afraid I can't tell you much more than I have just did. I only have a bit of experience in this field with MatLab but thats about it. This is what I was able to find within a few minutes on Google:
DAFT.as - The DSP Audio Toolkit for Flash. The DATF is a wrapper class that provides simple interfacing with C/C++ DSP functions via Adobe Alchemy.
ALF.as - The Audio processing Library for Flash. ALF plays an audio file (MP3 or wav) using the dynamic audio functionality of Actionscript3 and provides methods for obtaining audio features and manipulating the audio output stream on a frame by frame basis.
as3mathlib - The Flex/Actionscript Math Library (as3mathlib) is intended to provide a rudimentary numerical analysis toolkit for the Actionscript/Flex programming environment.
My best bet would be DAFT.as. Other than that, I can't tell you anything more. You should really get some knowledge about audio (and signals in general) processing in the internet or some technical or university library. Your problem relates mostly to signal processing tasks (which is mostly mathematics) rather than Flex or Actionscript.
Hope those libraries will be of some use.
Michael
Similar Messages
-
Could some one help me on how to compare two wave file for
similarities also can i provide a facility to record a audio at run
time and compare with the one that i already have.the criteria is when the wave line is tha same, I think this is the best form to compare the content of a wave. Maybe with a range for the error question in the timeline.
-
How can i compare two excel files with different no. of records.
Hi
I am on to a small project that involves us to compare two excel files. i am able to do it but am struck up at a point. When i compare 2 different .csv files with different no. of lines i am only able to compare upto a point till when the number of lines is same in both the files.
Eg. if source file has 8 lines and target file has 12 lines. The difference is displayed only till 8 lines and the remaining 4 lines in source lines are not shown.
Can you help me in displaying those extra 4 lines in source file. I am attaching my code snippet below..
while (((strLine = br.readLine()) != null) && ((strLine1 = br1.readLine())) != null)
String delims = "[;,\t,,,|]";
String[] tokens = strLine.split(delims);
String[] tokens1 = strLine1.split(delims);
if (tokens.length > tokens1.length)
for (int i = 0; i < tokens.length; i++) {
try {
if (!tokens.equals(tokens1[i])) {
System.out.println(tokens[i] + "<----->" + tokens1[i]);
out.write(sno + " \t" + lineNo1 + " \t\t" + tokens[i] + "\t\t\t\t" + tokens1[i]);
out.println();
sno++;
} catch (Exception exception)
out.write(sno + " \t" + lineNo1 + " \t\t" + tokens[i] + "\t\t\t\t" + "");
out.println();
Thanks & RegardsA CSV file is not an Excel file.
But apart from that your logic makes no sense.
If the 2 files are of different sizes the files are different by definition, so further comparison isn't needed, you're done.
If you want to compare individual records, you need to compare all records from one file with all records from the other, unless the order of records is important in which case your current system might work.
That system however is overly complicated for comparing CSV files.
As you assume a single record per line, and if one can assume those records to have identical layout (so no leading or trailing whitespace in or between columns in one file that's not in the other) comparing records is simply a matter of comparing the entire lines. -
Compare two pdf files using adobe acrobat through command line
Does anyone know how to compare two pdf files using adobe acrobat through command line. I want to do this via command line because we want to compare hundreds of file every day through some automated windows tasks.
If command line option is not available in acrobat, then is it feasible to make use of acrobat javascript API to do this task?
Any kind of help will be greatly.Command-line: Not possible.
JavaScript: Possible, but very limited. Basically the only thing you can do is simulate clicking the Compare Documents button. The rest has to be done manually.
However, it *might* be possible to automate this process a bit more using a plugin. Ask over at the Acrobat SDK forum for more information... -
How to compare two excel files in java ?
how do i compare two excel files in java.?
I have two excel files stored on my computer in d: drive.
Ex:
D:\\file a
D:\\file b
How to compare the contents of these two files and print " files are equal " or "files not equal "Javamastermahe wrote:
I mean i want to print on the console "files are equal " or any message like " both the files match "If this is your requirement, this program satisfies it...
import java.util.Random;
public class SuperExcelTester {
public static void main(String[] args) {
Random rnd = new Random();
String[] messages = {
"files are equal",
"files are not equal",
"unexpected error"
int index = rnd.nextInt(messages.length);
System.out.println(messages[index]);
} -
i am comparing two text file by checking occurance of a line in file 1 by comparing it with each line in file 2(not line by line)
i have to print in 3rd text file as difference
please see my progrm and tell me modification required
package comp.vnet.comparator;
import java.io.*;
import comp.vnet.comparator.NewFile;
class FileComparator {
public static void main(String[] args) throws IOException{
String file1,file2,String1,String2;
BufferedReader br1,br2;
int fileCount1=0;
int fileCount2=0;
br1= new BufferedReader(new InputStreamReader (System.in));
// File file = new File ("output.txt");
FileWriter fstream = new FileWriter("out.txt");
// FileOutputStream fo = new FileOutputStream("E:/Filecomparator/FileComparator/output.txt");
System.out.println("Enter First file name");
file1="b.txt";
//file1=br1.readLine();
System.out.println("Enter Second file name");
file2="a.txt";
//file2=br2.readLine();
NewFile nf= new NewFile();
br1=nf.creatingFile(file1);
br2=nf.creatingFile(file2);
while ((String1= br1.readLine()) != null) {
fileCount1++;
while ((String2= br2.readLine()) != null) {
fileCount2++;
System.out.println("fileCount1+ : " + fileCount1);
System.out.println("fileCount2+ : " + fileCount1);
br1=nf.creatingFile(file1);
BufferedWriter out = new BufferedWriter(fstream);
for(int i=0;i<=fileCount1;i++)
br2=nf.creatingFile(file2);
String1=br1.readLine();
for(int j=0;j<fileCount2;j++)
String2=br2.readLine();
if ( String1.equals (String2) ) {
System.out.println("the line is equal");
else{
out.write(String1);
System.out.println(String1);
out.close();
br1.close();
br2.close();
}thanks alot for that reply
but there is some error
pleasse send me a nice reply -
Is it possible to play two audio files simultaneously.
Hi,
Is it possible to play two audio files simultaneously.
I modified the 'SpeakHere' to play two audio files simultaneously, it worked perfectly on simulator but get hanged on iphone.
To this I implemented NSTimer, which regularly checks for both player instance every second.As soon as any player gets stopped Timer task stops the second one forcefully and again starts both.
thanks.Hi Jay
Do you have the eLearning Suite? If so, you have Adobe Presenter available to you. If you don't, you should be able to download the Presenter installation file and evaluate it.
Presenter is an add in for PowerPoint. The neat thing about it is that it provides for a Table of Contents type of functionality as you see is configured in Captivate. But the twist with that is you are able to do something you cannot do in Captivate. You are able to insert videos inside the TOC area!
Just musing out loud... Rick
Helpful and Handy Links
Captivate Wish Form/Bug Reporting Form
Adobe Certified Captivate Training
SorcerStone Blog
Captivate eBooks -
How to compare two XSD files programmatically
Hi
I want to compare two XSD files programmatically to find out whether one XSD is a sub set of another XSD(Means checking all the elements and attributes of one schema to be present in another schema).
Please let me know how this can be done in an efficient way.
Thanks in advance.
Mithun KOr simply apply an oracle text index on your pdf column:
SQL> create table t (id integer primary key, bl blob)
Table created.
SQL> declare
bf bfile := bfilename('TEMP','b32001.pdf');
bl blob;
begin
dbms_lob.createtemporary(bl,true);
dbms_lob.open(bf,dbms_lob.lob_readonly);
DBMS_LOB.LOADFROMFILE(bl, bf,dbms_lob.getlength(bf));
insert into t values (1,bl);
commit;
dbms_lob.close(bf);
dbms_lob.freetemporary(bl);
end;
PL/SQL procedure successfully completed.
SQL> create index t_idx on t (bl) indextype is ctxsys.context parameters ('filter ctxsys.auto_filter')
Index created.
SQL> declare
mklob clob;
begin
ctx_doc.filter ('t_idx', '1', mklob, true);
dbms_output.put_line (substr (mklob, 1, 250));
dbms_lob.freetemporary (mklob);
end;
Oracle® Database
Release Notes
11
g
Release 1 (11.1) for Linux
B32001-04
November 2007
This document contains important information that was not included in the
platform-specific or product-specific documentation
PL/SQL procedure successfully completed.This generates a text only version of your pdf and standard text comparison methods can be applied .... -
Compare two XML files: Analysis and Design
Hi, Java/XML/JDOM experts,
I realised that an open source of Java utility to compare two XML is still missing. So I would like to write one for my JDOM excises.
I plan to do it in three steps:
1.Define the problem domain.
2.Design the classes to be developed.
3.Coding
Below is the problem domain. Would you review it and tell me if it is fine?
Best regards,
AG
Compare two XML files
Schema assumption:
The xml files used for the comparison must have the same schema.
Definition:
1. Two elements of simple type are said equal if their name and value are identical.
2. Two elements of complex type are said comparable if their name, attributes are identical.
3. Two elements of complex type are said equal if they are comparable and their children elements are identical.Hi,
Thanks for reviewing my idea.
The xml files used for the comparison must have the
same schema.Including not having a schema at all? And if they do
have a schema, must they be valid according to the
schema?I will only support schema based xml files. To include a schema is a good practice. So I will valid them agaisnt schema (is this possible with JDOM? I am testing ...)
>
2. Two elements of complex type are said comparableif
their name, attributes are identical.
3. Two elements of complex type are said equal ifthey
are comparable and their children elements are
identical.Do you plan to require child elements to appear in the
same order for the two documents to be equal? (Note
that XML specifically says that the order of
attributes is not significant.)No. The order is not significant as I use the attributes as the keys to find comparable element counterpart.
Here is the sample code already tested. Any comments are welcome!
The next step is to define the "delta xml schema" that will guide me to store the comparasion results. Do you have any suggestions?
Regards.
AG
public static boolean comparable(Element element1, Element element2)
boolean returnValue=false;
if (element1.getName()!=element2.getName()) {
return returnValue;
} else {
returnValue=true;
System.out.println ("place 2");
List attributeList=element1.getAttributes();
Iterator attributeIterator=attributeList.iterator();
Attribute workingAttribute=null;
while (attributeIterator.hasNext()) {
if (!workingAttribute.getValue().equals(
element2.getAttribute(workingAttribute.getName(), workingAttribute.getNamespace()).getValue()))
returnValue=false;
break;
return returnValue; -
Hi,
Is it possible to compare two fmx files , there are few differences between two fmx files , i wanted to know what are the differences.............Thanks.Bcjby converting fmb files into xml or text and then using gvimdiff (or similar) on unix or windows will show you the differences. For fmx files, as pointed earlier - you can only see that if they are different or not. On unix you can use strings command (for fmx files) and pipe it to a text file and then do a diff on the files, but that will not be too helpful either.
-
Comparing two text files in a UNIX using shell programming
Hi All,
Sorry for posting a UNIX shell query on Database forums.
I want to compare two text files using shell programming. The two text files are actually Business Objects output extracted in a text format. The two output files are not in a tabular format and are no way similar in looking. I want to take one file e.g. file1 as an input file and compare each line of file1 with the other file e.g. file2. During comparison I want to extract the differences found in another file and if possible the similar data as well.
Below is how the files will look like
File 1:
BILL1000000 1111251 122222
RMG1A2 023425100000000010001 11135 102650111100
UHL1 *6999999* *454540001* Weekly *000*
0544424556895PS DATA 01MPS100000/03 MR A A PERTH UTL1234567893106923455053106900000010000005
File 2:
AUTO
APPLICATION=STARTPOINT
START
PROCESSING DATE=01012011
1598301270320099TEST C E 00000031615 123456
7854301276140499TES P 00000062943 234567
UHL1 *6999999* *454540001* Weekly *000*
5569931233333499/123456789 00000013396 345678
4471931233333499ER K J 00000031835123456789012456789
33652931233333499E J L 00000034729123456789012567890
45783123333349921/123456789 00000039080 678901
1452931233333499T R 00000040678123456789012789012
59689312333334994/987654321 00000048614 890123
4112931233333499/987654321 00000060631 901234
1236931217836899 K S 00000043704 012345
END
As you can see above the file are not at all matching except for one record UHL1, but its just an example. As an output I would like to have a third file containing all these records, highlighting the differences, and a fourth file where in only the matched records should get populated.
Please post any useful scripts related to the above scenario.
Many Thanks.
Edited by: 848265 on 06-Apr-2011 04:13Hi;
For your issue i suggest close your thread here as changing thread status to answere and move it to Forum Home » Linux which you can get more quick response
Regard
Helios -
Installed Adobe XI Pro trial verison, when compared two pdf files it gives error "Expected a Name Object"..Can some one say how to fix this?
Installed Adobe XI Pro trial verison, when compared two pdf files it gives error "Expected a Name Object"..Can some one say how to fix this?
-
Hi developers..........
I have a problem in compare two xml files.My project description is I take two xml(file1,file2) files.Compare file1 with file2. Now I want what are the same words in to the file2.
file1:
<hello>
<html>
<jsp:plugin>
file2:
<hello>
<jsp:usebean>
<html>
result:
<hello>
any give the code for this logic.....hi...can u pls send me the code which compares two
xml files and gives the output as difference between
two fileshttp://www.bmsi.com/java/#diff -
How to compare two VBAI file?
How do I compare two VBAI files?
I have 2 parallel version of a VBAI file. How can I compare their differences?Unfortunately, VBAI does not have a compare function. Good suggestion, though. We'll make a note of it and add it to the list of possible features for future versions.
Thanks.
Christophe -
Compare two .txt files and show result
HI
Could anybody show me how to compare two text files and show the result.
i.e.
textfile1.txt
harry.denmark
karry.sweden
textfile2.txt
harry.denmark
karry.sweden
marry.usa
Compare
result=
marry.usa
The text files I want to compare are how ever much larger than this example. (up to 2-3.000 words)
anybody ??
Sincerly
PederHI & thanks for reply
I know almost nothing about java so could you or anybody please show me the code to do this? Or is it perhaps too large or difficult a code?
I know how to compile a .java file and run it in prompt :-) and thats about it (almost)
I offcourse understand if its too much to ask for :-)
Maybe you are looking for
-
I recently sycned all my Itunes music from my Iphone to my Mac. I had 150-200 songs. After the sync I went and checked my phone, I now only have 53 songs. The lost one's aren't even showing up in my purchased. It's like I never bought them! Please he
-
Saving pics from the web into photos for Asha 302
This has been mentioned before for other phones. For the Asha302 seems not to be as straight forward as my old Nokia 310. Is there a simple way? Thanks
-
Cancel pay-as-you-go! Monthly subscription is act...
Andy. McGovern3. I want to cancel pay-as-you-go! As I have already contributed to monthly subscription. And told that it is activated. However, when I make a phone call. The money is taken out of my pay-as-you-go eight euros remaining! I would
-
Just started using a brand new ICD-AX412. I have recorded a meeting and the playback is fine through the 412. 2 problems. 1. With the expansion M2 SanDisk, it takes the 412 about 10 minutes to "Access". Top line says "Accessing" for 10 mins. Then it
-
I want to synchronize 2 macbooks and 2 iphone4s with only one database
I want to synchronize 2 macbooks and 2 iphone4s with only one itunes music database, kalender, contact and so on. I use only one itunes account. All devices shall have the same informations (for the iphones available). Do I have to bring all informat