Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Local wave playback (Read 1663 times)
fbn
YaBB Newbies
*
Offline


Phoner is great!

Posts: 7
Joined: 22. Jun 2023
Local wave playback
28. Mar 2025 at 13:25
Print Post  
Hi
Great work.
I have made a script that plays 'This is Flemming speaking, how may I help you?' right after I answer the phone, and then the conversation continues as normal.
Is there any way I can play the wave locally, so I can hear it myself?

Code
Select All
Print waiting for call
Wait HasCall
If !IsIncoming
  Print wait until outgoing call ends
  Wait !HasCall
  Print outgoing call ended - restart
  Load %LOAD_FILE%
EndIf
Print Incoming call available
Wait !HasCall,StateIsActive
If StateIsActive
  Print incoming call was answered. Wait for call termination
  Wait 1
  Wave C:\PhonerLite64\Answer.wav
Wait !HasCall
  Print incoming call ended - restart
  Load %LOAD_FILE%
Else
  Print Call ended unanswered. Put here some action like "Exec myapp.exe %LAST_PEER%"
  Load %LOAD_FILE%
EndIf
  

  
Back to top
 
IP Logged
 
Phoner Admin
YaBB Administrator
*****
Offline



Posts: 11665
Location: Germany
Joined: 12. Oct 2003
Gender: Male
Re: Local wave playback
Reply #1 - 01. Apr 2025 at 13:03
Print Post  
Just call the following code within the CLI window without any call:
Code
Select All
Wave C:\PhonerLite64\Answer.wav 

  
Back to top
WWW  
IP Logged
 
fbn
YaBB Newbies
*
Offline


Phoner is great!

Posts: 7
Joined: 22. Jun 2023
Re: Local wave playback
Reply #2 - 02. Apr 2025 at 15:26
Print Post  
The question was to play both to the caller and local at the same time. So when I answer the phone I can hear the same as the caller can, and know when the wave has finished so it is my turn to speak.
  
Back to top
 
IP Logged
 
Phoner Admin
YaBB Administrator
*****
Offline



Posts: 11665
Location: Germany
Joined: 12. Oct 2003
Gender: Male
Re: Local wave playback
Reply #3 - 03. Apr 2025 at 15:55
Print Post  
I understand. You should see a small icon beside the dial buttons appearing when a file is played. The icon disappears as soon the file is played completely.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint