VoiceChange news Content of documentation User documentation Administrator documentation Index of terms Technical Support Search on-line

VoiceChange COM objects reference - main list
Method ConvertFile

Syntax

Info = CnvWAVComObject.ConvertFile(InputFileName, OutputFileName, OutputFormat)

Description

Converts audio file InputFileName into file OutputFileName.

Parameter string OutputFormat determines the format of output file:

Parameter Description
FormatDef Obligatory parameter. Describe the format of output the file. The value can be retrieved from method FormatDlg or from values in standard formats table.
WCNV.TRIM.SILENCE The silence will be (value 1) or not (value 0) trimmed. Default is 1.
WCNV.TRIM.BEEP The tones from phone central will be (value 1) or not (value 1) trimmed. Default is 1.
WCNV.COMPRESS The dynamics compression of sound volume level will be done (value 1) or not (value 0) during the recording. Default is 1.
WCNV.TRIM.LEVEL Real number between 0 to 1. The level of signal considered as usable. Default is 0.01.
WCNV.TRIM.BEEP.FDEVTHR Real number between 0 to 1. Block is considered as a voice record, if the frequency scatter is greater than this nuber. Default is 0.09.
WCNV.TRIM.FILL Real number between 0 to 1. Comparative part of section, that must have the sound level greater than WCNV.TRIM.LEVEL, when the section is considered as a voice record. Default is 0.2.
WCNV.COMPRESS.LEVEL Real number between 0 to 1. If the sound level is greater, the signal will be amplified. Default is 0.01.
WCNV.COMPRESS.BASE Real number between 0 to 1. Output signal level with former level WCNV.COMPRESS.LEVEL. Default is 0.9.
WCNV.COMPRESS.MAX Real number between 0 to 1. Maximal level of amplified signal. Default is 0.9.
WCNV.COMPRESS.DWIN Real number. Time section for finding an amplitude (in seconds). Default is 0.02.
WCNV.COMPRESS.TAU Real number. Time constant for compressor (in seconds). Default is 0.7.
WCNV.BLOCK.LEN Rel number. Length of processed blocks (in seconds). Default is 2.

FormatDef values for standard formats

Format Value FormatDef
DSP Group TrueSpeech(TM) - 8000 Hz; 1067 Byte/s 34|1|8000|1|32|1067|32|001 000 240 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000
GSM 6.10 - 8000 Hz; 1625 Byte/s 49|1|8000|0|65|1625|2|064 001
GSM 6.10 - 11025 Hz; 2239 Byte/s 9|1|11025|0|65|2239|2|064 001
Microsoft ADPCM 4 bit - 8000 Hz; 4096 Byte/s  2|1|8000|4|256|4096|32|244 001 007 000 000 001 000 000 000 002 000 255 000 000 000 000 192 000 064 000 240 000 000 000 204 001 048 255 136 001 024 255
Microsoft ADPCM 4 bit - 11025 Hz; 5644 Byte/s 2|1|11025|4|256|5644|32|244 001 007 000 000 001 000 000 000 002 000 255 000 000 000 000 192 000 064 000 240 000 000 000 204 001 048 255 136 001 024 255
PCM 8 bit - 8000Hz; 8000 Byte/s 1|1|8000|8|1|8000|0|
PCM 16 bit - 8000Hz; 16000 Byte/s 1|1|8000|16|2|16000|0|
PCM 8 bit - 11025Hz; 11025 Byte/s 1|1|11025|8|1|11025|0|
PCM 16 bit - 11025Hz; 22050 Byte/s 1|1|11025|16|2|22050|0|