Print Page | Close Window

Routing line through speakers

Printed From: Way2call Communications
Category: Hi-Phone Software Development Kit (SDK)
Forum Name: Hi-Phone and .NET
Forum Description: Discussion on the Hi-Phone product family, its .NET interface, samples and development tools
URL: http://www.way2call.com/forum/forum_posts.asp?TID=48
Printed Date: Nov 11 2024 at 11:01am


Topic: Routing line through speakers
Posted By: ZenArcher
Subject: Routing line through speakers
Date Posted: Feb 13 2010 at 10:25pm
How do I route the line through the computer speakers without using a 3.5mm plug?



Replies:
Posted By: Steve
Date Posted: Feb 15 2010 at 9:27am

You should write a small application that uses the PC wave devices.

Route the Hi-Phone line wave file (Hi-Phone recording device) To the speaker (Sound card Playback device)



Posted By: ZenArcher
Date Posted: Feb 15 2010 at 2:13pm
Even utilizing the test application I am unable to hear incoming voice unless I record it then play it back. I can accomplish that with TAPI and a $19 voice modem.

I purchased this modem for the full duplex capabilities to be used in an AAC application. Outgoing text is a wav generated by a text to speech engine. I now simply wish to route the line to the speakers so that I can hear the other party. If that is not possible please let me know so that I can return the unit.


Posted By: Steve
Date Posted: Feb 15 2010 at 5:01pm

I can’t understand what exactly you are trying to do, I’m using the way2call products for few years and I’m sure that everything you can do with a TAPI and a Modem you can do with the Hi-Phone devices as well, and with better audio quality.

Can you explain in more details what you are trying to do step by step?



Posted By: doronsh
Date Posted: Feb 15 2010 at 5:16pm

Please send more information about the way2call device that you are using, include part number and s/n.

You can find this information at start menu >>> programs >>> way2call Multiple Hi-Phone devices >> way2call drivers information

Also, are you using off the shelf TAPI application, or one of the Hi-Phone SDK’s API?



Posted By: ZenArcher
Date Posted: Feb 15 2010 at 5:58pm
I am writing an AAC (augmentative and alternative communication) package which is available at http://www.ALSMatters.org - ALSMatters.org . I am attempting to add a telephone interface. By that I mean the ability to send synthesized speech on demand and listen to incoming speech through the computer speakers.

I have accomplished this using a cheap voice modem and TAPI 3.1 using Julmar's ITAPI wrapper using C# however due to the half duplex issues the lag between generating and sending speech and switching back to listening makes it unusable.

For testing I have developed the same application using the Way2Call USB Lite and the .Net SDK. I am able to send text via a wav file but I am unable to hear the speaker (ie handset with no earpiece).

In Tapi I use:
TTerminal _speakerTerminal = address.GetDefaultStaticTerminal(TAPIMEDIATYPES.AUDIO, TERMINAL_DIRECTION.TD_RENDER);
and all incoming sound is routed through my speakers (default audio). What is the equivalent in the .Net SDK?

Way2call Drivers Information:

Package Version: 2.01.11 64bit (beta)

OS version: 6.1.7600 

Device Information:

1. Hi-Phone Desktop Lite 019224
    Firmware Version: 5.03.23
    P/N: HD00LTGR01
    S/N: 1028-07-019224
 

Software Components:

File: ScTsp64.tsp
    Description: Way2call Multiple Hi-Phone Devices TSP
    Version: 2.01.11
    Build: 0

File: scwiz32.exe
    Description: Way2Call Multiple Hi-Phone Devices PBX Wizard
    Version: 2.00.34
    Build: 0

File: TestWiz.exe
    Description: Way2call Multiple Hi-Phone Devices Test Wizard
    Version: 2.00.34
    Build: 0

File: w2cMdSound.exe
    Description: Way2call Multiple Devices As Sound Cards
    Version: 1.0.0.7
    Build: 0

File: w2cTspSetup64.exe
    Description: Way2call TAPI Setup
    Version: 1.0.0.2
    Build: 0

File: ml_setup.exe
    Description: Way2call Multiple Hi-Phone Devices Drivers installer
    Version: 2.0.0.43
    Build: b001

File: w2cMultiInfo64.exe
    Description: Way2call drivers infromation
    Version: 1.0.0.4
    Build: 0

File: w2cUSBM.dll
    Description: Way2call Multiple Hi-Phone Devices DLL
    Version: 1.3.7.0
    Build: b004

File: w2cUSBM64.dll
    Description: Way2call Multiple Hi-Phone Devices DLL
    Version: 1.3.7.0
    Build: b002


Audio IN devices:
  0. Microphone (Hi-Phone Desktop Li
  1. Modem #0 Line Record
  2. Digital Audio Interface (Hi-Pho

Audio OUT devices:
  0. Speakers (2- High Definition Au
  1. Modem #0 Line Playback
  2. Digital Audio (S/PDIF) (2- High
  3. Speakers (Hi-Phone Desktop Lite



Posted By: doronsh
Date Posted: Feb 15 2010 at 8:07pm

The Hi-Phone Desktop Lite is a telephony device and not using the Voice modem drivers. It has full duplex voice capabilities, and supplies all the required signals and waves for applications development.

There is no one command to switch the audio to the PC’s speaker. This command is a modem specific.

One way is to take the audio from the Hi-Phone input and route it to the PC’s speaker (wave to wave).

More simple solution is to plug the speaker to the Hi-Phone’s speaker out jack, and hear the Line.

The Hi-Phone has few switching modes, which define the way the audio flows.

In order to get the Line audio in the handset, or headset you should choose the right switching mode.

Switching mode description and commands can be found in the SDK .net help file.

CWay2callDriver.CDevice.SwitchingModes Enumeration

Choose: Line_PcAudio_Phone mode.

Use the headset switch

This will route the audio to the PC,  Line and handset together.

In order to use the headset, the headset should be chosen. (handset or headset can be used, but not together)

In order to choose between the handset and headset use the CWay2callDriver.CDevice.LOCAL_DEVICE



Posted By: mattj
Date Posted: Apr 20 2010 at 12:06pm
I've plugged a set of speakers in the back of my maestro and I don't hear anything. Am I suppose to do anything else?


Posted By: doronsh
Date Posted: Apr 20 2010 at 12:31pm

The Hi-Phone Maestro has a variety of audio paths, which are s/w dependable.

Some of the audio paths are related to the device model (e.g Phone or headset to the Line may be enable in the Maestro PWD and PWC model, but not in the IVR model).

See the Maestro product page for more details. http://www.way2call.com/ - www.way2call.com >>> Maestro

What exactly you are expecting to hear?

What is your Hi-Phone Maestro model (IVR, PWD or PWC)?



Posted By: mattj
Date Posted: Apr 20 2010 at 12:47pm
I'de like to be able to monitor the call through the speakers by any means possible in real time. 


Posted By: doronsh
Date Posted: Apr 20 2010 at 12:51pm

What is your Hi-Phone Maestro model (IVR, PWD or PWC)?



Posted By: mattj
Date Posted: Apr 20 2010 at 1:04pm
I have the ivr.


Posted By: doronsh
Date Posted: Apr 20 2010 at 1:30pm

The Hi-Phone Maestro IVR model enables the audio to from the headset, handset and 4 lines to/from the PC.

The PWD model enables to switch each of the lines to the headset or handset.

To perform the required operation in a simple way, the PWD model is required.

The Hi-Phone Maestro IVR model can be upgraded to PWD model



Posted By: mattj
Date Posted: Apr 23 2010 at 10:41am
I've upgraded to the PWD model have plugged in some speakers and it still doesn't pass the beep test. Please advise.


Posted By: doronsh
Date Posted: Apr 23 2010 at 11:16am

What is a beep test?

What exactly are you trying to do?



Posted By: mattj
Date Posted: Apr 23 2010 at 11:20am
I would like to monitor the outbound calls as they are happening.


Posted By: doronsh
Date Posted: Apr 23 2010 at 11:32am

In order to do so, you should attach the selected Line to the headset

See code to attach a phone to a specific line.

You should do similar, BUT with headset attach.

This way, the audio from the Line will be monitored by the Headset speaker output.

case IDC_CHK_ATTACH_PHONE:
   if(IsDlgButtonChecked(hDlg, LOWORD(wParam)))
   {
    DWORD dwFlags=0;
 
    if(IsDlgButtonChecked(hDlg, IDC_CHK_ATTACH_PHONE_HOOK))
     dwFlags |= W2C_TERMMODE_HOOKSWITCH;
 
    if(IsDlgButtonChecked(hDlg, IDC_CHK_ATTACH_PHONE_RING))
     dwFlags |= W2C_TERMMODE_RINGER;
 
    if(IsDlgButtonChecked(hDlg, IDC_CHK_ATTACH_PHONE_AUDIO_TO_LINE))
     dwFlags |= W2C_TERMMODE_MEDIATOLINE;
 
    if(IsDlgButtonChecked(hDlg, IDC_CHK_ATTACH_PHONE_AUDIO_FROM_LINE))
     dwFlags |= W2C_TERMMODE_MEDIAFROMLINE;
    
    w2cUsbM_SetTerminal(m_SelfID, W2C_TERMINAL_PHONE, dwFlags,0);
   }
   else
    w2cUsbM_SetTerminal(m_SelfID, W2C_TERMINAL_PHONE, W2C_TERMMODE_NONE,0);
 
   break;



Print Page | Close Window