I have to make an mp3 sound recorder to record through mike. So, I plan to
use lame as mp3 encoder which is written in C. I am unable to import its dll
in C# project as a reference because it says that the dll formed is not a
valid managed dll. So, I compiled the project as a static library (.lib) and
used it in a cpp project. I was able to use it successfully this way.
Secondly, I was also unable to find any sound recording library in C#. First.
please tell me the library(if any) for sound recording in C# and secondly, is
there any way I can use this C Application in that C# project. 1 15879
Nikhil Aggarwal wrote: I have to make an mp3 sound recorder to record through mike. So, I plan to use lame as mp3 encoder which is written in C. I am unable to import its dll in C# project as a reference because it says that the dll formed is not a valid managed dll. So, I compiled the project as a static library (.lib) and used it in a cpp project. I was able to use it successfully this way. Secondly, I was also unable to find any sound recording library in C#. First. please tell me the library(if any) for sound recording in C# and secondly, is there any way I can use this C Application in that C# project.
That's what i'm developing right now - sound recording with wav-to-mp3 conversion.
For recording i use Windows Multimedia API, which is the easies way.
There is a full-featured example on codeproject.com , which i used as a start: http://www.codeproject.com/cs/media/...asp?print=true
It shows how to implement a wav player/recorder in c# using p/invoke of winmm.dll
And i'm positive it will work for you
If you would have any questions regarding use of that example, don't hesitate to ask me
Good luck,
Andrey This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Josh |
last post by:
I am having a problem with sound in my program, it takes information from a
TargetDataLine, put's it in a temporary file, then takes it back out of the
temporary file and plays it using a SourceDataLine. currently, it does not
play back.
andrewjj20
the play method:
class Player implements Runnable {
public Player() {
|
by: ajac |
last post by:
In the windows xp system the sound recording
system give us only 1 minute of recording time. I would
like to get the "recording time Length " to the maximum.
please let me know Urgently.
Regards,
ajac
|
by: MLH |
last post by:
I've followed the instructions found on Microsoft's site...
http://support.microsoft.com/default.aspx?scid=kb;en-us;149119&Product=acc97
Here are those instructions...
To play and record sounds, follow these steps:
Create the following new table in Design view: Table: Messages
-----------------------
Field Name: Message
Data Type: OLE Object
|
by: Ehsan Sadeghi |
last post by:
Hello
can someone tell me how to save sound files and how to use them in a
program.
|
by: Jon Lehrer |
last post by:
Hoping for some advice:
I would like to write some code that controls
the "window's sound recorder" that I embedded in my
program with OLE. I can do this with Excel
(OLE1.Object.Parent.Activecell.Formula = "Hi") because I
know the commands from VBA in Excel.
Is there a way to do this with Windows Sound Recorder?
Some line of code that would, for example, allow me to
change the sample rate so that the user could record
sounds at 8000...
| |
by: Mad Scientist Jr |
last post by:
I'm trying to record a voice memo on a Pocket PC (2000) from VB.NET
(smart device application from vs.net 2003).
Tom Shelton did an initial conversion to VB.NET which I am trying to
run, but am getting errors I don't quite understand (I've never done
anything like this before)...
Any help would be appreciated in getting this to work...
'-----------------------------------------------------------------------------
|
by: Emma Gumbdough |
last post by:
Okay we have here a VB.NET version of the .net compact framework voice
recorder sample that uses open net CF
c# version at:
http://www.opennetcf.org/forums/topic.asp?TOPIC_ID=79
THIS CODE CREATES AN INSTANCE OF A VOICE RECORDER, but now how do you
get it to record, save, play back, etc?
|
by: Dave A |
last post by:
Hi,
I need to write a small WinForms application to record some sound in WAV and
then integrate with another online application. I cannot find either a MS
component or 3rd party component that will let me record sound.
Does anyone know of any components or techniques to solve this problem?
I would prefer to avoid jumping into Direct X since it will be used in a
corporate environment.
|
by: Alex |
last post by:
I would like to control the Windows Sound Recorder from Access VBA
code. I have found the sample code from the Microsoft website for the
default recorder (see below), but I could not find a way to control the
recording features from VBA. Are there any Verbs, OLE connections, or
SendKey commands that can do the trick?
Alex
astidis@aol.com
---------
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |