Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. how can i convert audio sample rate and audio sample size of wave files ??

how can i convert audio sample rate and audio sample size of wave files ??

Scheduled Pinned Locked Moved C#
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ahmedhassan96
    wrote on last edited by
    #1

    hi every body i want know how can i convert the audio sample rate and sample size in wave file Ex: i have audio files with sample size 16bit , audio sample rate 44khz and i want to change it to 8 bit , audio sample rate 11khz how can i do this by c# thanks in advance

    M 1 Reply Last reply
    0
    • A ahmedhassan96

      hi every body i want know how can i convert the audio sample rate and sample size in wave file Ex: i have audio files with sample size 16bit , audio sample rate 44khz and i want to change it to 8 bit , audio sample rate 11khz how can i do this by c# thanks in advance

      M Offline
      M Offline
      musefan
      wrote on last edited by
      #2

      well after a quick google search, see here [^]for details. I found that WAVE files can be stored in a number of different encodings, see here [^]for details. So I would suggest finding the encoding you have first. Then you can look into the format of that encoding. For example MP3 encoding details can be found here[^]. Then you can parse the file and change the data you want then save the file again. Simple enough in theory, but are you prepared to attempt the work is the real question.

      Life goes very fast. Tomorrow, today is already yesterday.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups