Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 9:03 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Sound Recording in Pub
PostPosted: June 30th, 2007, 12:34 pm 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
Hi

I need to set up a way for the user during runtime to make a voice sound recording. This would then need to be saved and played back at another point during a runtime.

The most efficient way during runtime that I've found, so far, is to create actions (for recording) to summon the Windows sound recorder (includes ability for user to record and save the.wav file), (for playback), first have a search file button that the user can employ to locate the file they recorded and store it's pathname to a variable, and then a playback button playing the sound file linked by that variable.

Trying to automate this as much as possible and reduce unnecessary user activity, is there any more efficient way to accomplish this?

Kind Regards,

_________________
Stephen


Top
 Profile  
 
 Post subject: Sound recording in pub
PostPosted: July 2nd, 2007, 2:37 pm 
Offline

Joined: February 16th, 2005, 12:05 pm
Posts: 38
Location: Norfolk / UK
There was a neat way to do this by using a freeware programme called soundrec 1.2 from Gerhard Sneider. I experimented with this with older versions of Opus and it worked fine, but with XP running I could not replay the files back through the programme. The .wav file would work in my odler editor ( Cool Edit) and in Windows Sound Recorder but no via Media Player. I assume something has changed in the sound spec!

However this little programme did all that was needed as you could specify the file location and simply replay it from the pub. No messy loading of third part software and file browsing. I have put up a post about the replay problem but no answers to that one. There may be a more up-to-date equivalent to that software but my searches have not lead to it yet!

I wanted to use this concept for telephone skills training where you need an instant replay. All the best with this one. Note that the web site for soundrec has been closed.

_________________
Happiness is the knowledge of a suitable alternative.
Opus V 6.4 - XP Prof. - Mem 1024 Mb -
3 drives - 2 DVD burners and DVD drive -
Celeron CPU 2.8 MHZ


Top
 Profile Visit website  
 
 Post subject:
PostPosted: July 2nd, 2007, 2:49 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Hi Stephen,

You could pretty much automate the entire process by calling a CMD recorder from within Opus Pub. See

http://www.fridgesoft.de/harddiskogg.php

By passing the name & path you require to the recorder, you can keep track of the last recording in a text file or via the registry and then play it back simply by calling the name and path. No user intervention required.

Mack.

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: July 2nd, 2007, 5:14 pm 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
Thanks for your suggestions. :)

Too bad about the sound recorder link that no longer is active. The HarddiskOGG while interesting, won't work for this type of project.

Does anyone know about other resources for an ActiveX or other type of redistributable basic voice sound recorder (.wav output is fine) that can be called in an Opus pub via a launch file plus command line/paramenters or via a .dll with callable functions?

Any additional leads would be greatly appreciated.

Kind Regards,

_________________
Stephen


Top
 Profile  
 
 Post subject:
PostPosted: July 5th, 2007, 9:15 am 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
Have a look at http://www.un4seen.com/ I have no idea of its capabilities, but it does say "and recording functions. All in a tiny DLL, under 100KB* in size."

Sandy

_________________
Whoever designed this, never actually used it!


Top
 Profile  
 
 Post subject:
PostPosted: July 5th, 2007, 11:41 am 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
Hi Sandy

Thanks for your lead. Such a DLL would be great!

I went on to the site, but, going through the offerings, can't seem to locate the DLL. I've written to them via their contact form to inquire. Have you any idea which of the items may be the DLL?

Kind Regards,

Stephen

_________________
Stephen


Top
 Profile  
 
 Post subject:
PostPosted: July 5th, 2007, 12:02 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
Yes, sorry..... when I copied the link to the Bass page, I didn't notice it was the home page URL which was pasted. If you look at http://www.un4seen.com/Bass.html and at the top, there is a download link for Win32 and OSX.
I just downloaded it and had a look inside the DLL--it has more functions than you can shake a stick at!!! I'm not sure how easy it would be to use, but worth investigating.

Sandy

_________________
Whoever designed this, never actually used it!


Top
 Profile  
 
 Post subject:
PostPosted: July 5th, 2007, 12:55 pm 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
Hi Sandy

Thanks. Definitely worth a look.

Kind Regards,

_________________
Stephen


Top
 Profile  
 
 Post subject:
PostPosted: July 5th, 2007, 1:11 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
I've had a look at it --the DLL loads, but I can't get anything meaningful back from it--there is a function which returns the version....BASS_GetVersion(). I have tried every return type, but it will not return the Version.

_________________
Whoever designed this, never actually used it!


Top
 Profile  
 
 Post subject:
PostPosted: July 5th, 2007, 1:36 pm 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
Hi Sandy

Thanks for your reply.

I also took a look at the downloaded file (plus WMA DLL plugin).

Whew! You can imagine that if you are having difficulty figuring it out, I am beyond "lost."

I need a very basic (royalty-free redistribution for commercial use) voice recorder (playback can be done, if recorded file type is Opus compatible, using Opus audio playback, stop actions). Bass appears to be a very sophisticated recording studio, with some pricey purchase prices, depending on future distribution options.

I've been considering using the default Windows Sound Recorder. It can record for 60 seconds (XP version) and unlimited for the Vista version (though I can't test Vista, having only XP). Can't pass any command lines, options, parameters. But, it may work for my simple task.

If I can figure out how to set a few basic buttons in Opus to load the Bass DLL and call record, save file as(.wav, .WMA), open, pause, stop, resume and play functions, that's all I would need. I'll give it a try, but given my skills, this may be way beyond what I can achieve.

Again, thanks.

Kind Regards,

_________________
Stephen


Top
 Profile  
 
 Post subject:
PostPosted: July 5th, 2007, 2:47 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
I've just been trying very basic functions to see if it will work.
here is what I'm using

Code:
function LoadAudio()
{

   MyDLL3=LoadDLL(SYSTEM_WINSYS_DIR+"bass.dll")
   if(MyDLL3)
   {
      Debug.trace("BASS loaded"+"\n")

      }

   else
   {
      Debug.trace("Bass not loaded")
   }
}//End LoadAudio



function TestIt()
{
         
         GetRev=MyDLL3.CallFn("BASS_GetVersion()","false","ulong")
Debug.trace("\n"+GetRev+"=Rev"+"\n")
}//End TestIt

function FreeIt()
{
         
         if(MyDLL3.CallFn("BASS_Free()","false","none"))
         {
         Debug.trace("\n"+"True"+"\n")
         }
         else
         {
         Debug.trace("\n"+"Bummer"+"\n")
         }
         Debug.trace("\n"+"done"+"\n")
         
}//End FreeIt

I call the functions from a button.

The DLL seems to load, but I can't get the version returned. The DLL returns a DWORD which is a ulong...I think? but I have tried every return type and don't get a sensible answer.

The FreeIt function was just to see if I could get an indication that the DLL will do something. BASS_Free returns a boolean, so I just tested it for true
It appears to work ....it gives me TRUE back, but until I can return some meaningful data---I'm not convinced.

This is similar to a problem I have with a DLL I created in Visual C++ Express. it's a very basic one which adds two numbers. I have tested the DLL in C++ and it works fine, however, when I try to get it to run with Opus, it refuses to work. As far as I can see, the C++ is unmanaged code (seems that VC++ can create both managed and unmanaged now).
I would like to crack this problem or understand why it doesn't work.

_________________
Whoever designed this, never actually used it!


Top
 Profile  
 
 Post subject:
PostPosted: July 5th, 2007, 3:08 pm 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
Hi Sandy

Thanks for your reply. Yes, this is quite a challenge. I'm afraid, way beyond me.

So far, in general with Opus and DLL's, I've figured out how to load a DLL and call some very basic functions, using examples, guesswork, trial and error, for setting such items as returns. Nothing remotely this sophisticated, though.

I am hopeful that you may be a able to figure it out further, since the Bass DLL has some very nice features, even if I would only need a few very basic ones. (I wonder if any other of their offerings are more basic record/play DLL's?)

Kind Regards,

_________________
Stephen


Top
 Profile  
 
 Post subject:
PostPosted: July 5th, 2007, 3:23 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
What is needed is a DLL with Start Record(); StopRecord(); and SaveAs() :-)

_________________
Whoever designed this, never actually used it!


Top
 Profile  
 
 Post subject:
PostPosted: July 5th, 2007, 3:35 pm 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
Yes, Sandy. Precisely what is needed. I wish I had the skill to create such a DLL.

Finding a basic one online has been unsuccessful.

Hard to say what market would exist for this, but an entrepreneurially focused programmer could probably sell some. Or, a plugin for Opus?

Feel free to give me a shout if you get further forward with the DLL.

Kind Regards,

_________________
Stephen


Top
 Profile  
 
 Post subject:
PostPosted: July 5th, 2007, 3:50 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
I have been trying to create a DLL for a while. I know Mack has gone down the C# route with no success, which is why I looked at C++....with no success....yet.
I think people are beginning to see the possibilities that DLL support gives, so it would benefit everyone if we could crack the problem and manage to create a working DLL for Opus.

_________________
Whoever designed this, never actually used it!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 26 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group