Leadtools.Dicom Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
SaveAudio Method
See Also 
Leadtools.Dicom Namespace > DicomWaveformGroup Class : SaveAudio Method




fileName
Name of the audio file to be created.
Creates an audio (wave) file from the channels in the waveform group.

Syntax

Visual Basic (Declaration) 
Public Sub SaveAudio( _
   ByVal fileName As String _
) 
Visual Basic (Usage)Copy Code
Dim instance As DicomWaveformGroup
Dim fileName As String
 
instance.SaveAudio(fileName)
C# 
public void SaveAudio( 
   string fileName
)
Managed Extensions for C++ 
public: void SaveAudio( 
   string* fileName
) 
C++/CLI 
public:
void SaveAudio( 
   String^ fileName
) 

Parameters

fileName
Name of the audio file to be created.

Example

For an example, refer to WaveformGroupCount.

Remarks

  • This method is very useful for extracting audio (wave) data from a DICOM object of type "Basic Voice Audio" (1.2.840.10008.5.1.4.1.1.9.4.1), which is typically used for report dictation.
  • The resulting wave file has the following characteristics:
    1. Number of channels: will either be 1 or 2, based on the value of the number of channels for this multiplex group. You can call ChannelCount to get the number of channels in a multiplex group.
    2. Bits per sample (sample size) will always be 8.
    3. Samples per second (sampling rate): This will be the same as the sampling frequency for the waveform group, call GetSamplingFrequency to get this value.
    4. Format category: PCM, mu-Law or a-Law, based on the value of the waveform sample interpretation which can be retrieved by calling GetSampleInterpretation.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Dicom requires a Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features