⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vctalknow-server.pxs

📁 Voice Commnucation Components for Delphi
💻 PXS
字号:

{
	vcTalkNow-server demo script.
	Use with VC 2.5 Pro Scriptor component.

	Copyright (c) 2002-2005 Lake of Soft, Ltd
	All rights reserved

	http://lakeofsoft.com/vc/
}

{===================================================

	TalkNow Server.

        SCRIPT INFORMATION:

	This is server part of vcTalkNow demo.
	No configuration is required, just execute
	the script to start the server.

	Press Execute button to execute the script.
	Press Clear button to destroy the components.

====================================================}

// it is a good idea to clear the components list before doing a new job.

clear;

// -- create devices --

waveOut = TunavclWaveOutDevice;
waveIn = TunavclWaveInDevice;
waveIn.pcm_numChannels = 1;		// mono
waveIn.pcm_samplesPerSec = 8000;	// voice

codecIn = TunavclWaveCodecDevice;
codecIn.inputIsPCM = true;
codecIn.formatTag = 49;	// GSM

codecOut = TunavclWaveCodecDevice;
codecOut.inputIsPCM = false;
codecOut.formatTagImmunable = false;

ipServer = TunavclIPInStream;
ipServer.port = 17820;
ipServer.proto = udp;


// -- link components --

waveIn.consumer = codecIn;
codecIn.consumer = ipServer;
ipServer.consumer = codecOut;
codecOut.consumer = waveOut;


// -- activate devices --
waveIn.active = true;

// -- EOF --

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -