how to compare two sounds in C#?

compare two sounds in C#?

Page 1 of 1

6 Replies - 22717 Views - Last Post: 14 January 2010 - 08:49 AM Rate Topic: -----

#1 lizettech14  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 13-January 10

how to compare two sounds in C#?

Posted 14 January 2010 - 12:05 AM

how do i compare two sounds in c#? or probably how do i verify that the speech input i made is the same as my recorded audio file?


i really need reply ASAP. thanks

This post has been edited by lizettech14: 14 January 2010 - 12:13 AM

Is This A Good Question/Topic? 0
  • +

Replies To: how to compare two sounds in C#?

#2 papuccino1  Icon User is offline

  • His name was Robert Paulson.
  • member icon

Reputation: 63
  • View blog
  • Posts: 1,121
  • Joined: 02-March 08

Re: how to compare two sounds in C#?

Posted 14 January 2010 - 04:35 AM

I'm just spitballin here, but what if you tried converting the sound file to a byte[] array and then compared bytes?

Would that work? I'm not quite familiar with audio manipulation.:P
Was This Post Helpful? 0
  • +
  • -

#3 lizettech14  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 13-January 10

Re: how to compare two sounds in C#?

Posted 14 January 2010 - 05:14 AM

View Postpapuccino1, on 14 Jan, 2010 - 03:35 AM, said:

I'm just spitballin here, but what if you tried converting the sound file to a byte[] array and then compared bytes?

Would that work? I'm not quite familiar with audio manipulation.:P



thanks for the reply.

i was kynda thinking about that, and i've seen websites saying convert it into hex also. but my problem is how do it convert the sound file into this format. any suggestions?
Was This Post Helpful? 0
  • +
  • -

#4 SwiftStriker00  Icon User is offline

  • No idea why my code works
  • member icon

Reputation: 439
  • View blog
  • Posts: 1,617
  • Joined: 25-December 08

Re: how to compare two sounds in C#?

Posted 14 January 2010 - 06:38 AM

http://www.codeproje...o/cswavrec.aspx
http://www.codeproje.../cswavplay.aspx
Was This Post Helpful? 0
  • +
  • -

#5 lizettech14  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 13-January 10

Re: how to compare two sounds in C#?

Posted 14 January 2010 - 07:06 AM

View PostSwiftStriker00, on 14 Jan, 2010 - 05:38 AM, said:



thanks for another reply. i did the conversion to byte already!

now what i need is to convert my speech input to byte.. anyone knows???

This post has been edited by lizettech14: 14 January 2010 - 07:09 AM

Was This Post Helpful? 0
  • +
  • -

#6 papuccino1  Icon User is offline

  • His name was Robert Paulson.
  • member icon

Reputation: 63
  • View blog
  • Posts: 1,121
  • Joined: 02-March 08

Re: how to compare two sounds in C#?

Posted 14 January 2010 - 08:24 AM

You can figure out a way to record sound to a sound file (could be WAV, MP3, OGG, whatever).

Then when you save that file, convert it to byte, and compare it to the original byte[].

Of course save the file in a temprorary location and then delete it.

Say if you want voice authentification.
Was This Post Helpful? 0
  • +
  • -

#7 lizettech14  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 13-January 10

Re: how to compare two sounds in C#?

Posted 14 January 2010 - 08:49 AM

View Postpapuccino1, on 14 Jan, 2010 - 07:24 AM, said:

You can figure out a way to record sound to a sound file (could be WAV, MP3, OGG, whatever).

Then when you save that file, convert it to byte, and compare it to the original byte[].

Of course save the file in a temprorary location and then delete it.

Say if you want voice authentification.


hmm yea that's what im trying to do but im thinking if theres a way to convert a speech to text - there is a step somewhere inside that converts the speech to byte right? i want to do that... if its possible.. if not ill stick to voice recording - which seems to be another 24 hours of work for me! thanks alot for replying. really appreaciate it!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1