Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 20th, 2006, 02:24 AM
Registered User
 
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Please i need a help please

I want a C# code to compare two wav file or in other words
I want a code to obtain the result as apercent of the similarity of two wav file

soso_jaw


 
Old July 21st, 2006, 09:52 AM
Authorized User
 
Join Date: Jul 2004
Posts: 69
Thanks: 0
Thanked 1 Time in 1 Post
Default

The problem that you will run into is as old as computers. Two people saying "Hello" will make two bit-wise different files and making a computer understand this is extremely tricky.

Microsoft has some libraries that may help. However, they are not a part of the .Net framework and I am not sure how they are licensed. They come as part of the Office Speech Recognition Package.

Giving a percentage of the similarity of two files in general is very easy. Load both files as byte arrays, cycling through, comparing one to the other. Note the number of array items that are equal and divide that by the total number of bytes (use the file with the least number of bytes for this calculation). As stated before however, it won't be a movie-like, "98% Match, this is our guy." Hollywood is still keeping that code a secret. :)



www.CoderForRent.com
Get A Computer Job!

www.ComputersComplete.com
Computer Parts & Accessories









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.