| 
    VoiceSDK
    5.3.0
    
   | 
 
Class with some static utility functions for working with WAV-data. More...
#include <voicesdk/core/media/waveutils.h>
Public Member Functions | |
| WavUtils ()=delete | |
Static Public Member Functions | |
| static std::vector< uint8_t > | readAsPCM16Bytes (const std::string &wavFile, size_t &sampleRate) | 
| Reads WAV file as a PCM16 bytes buffer (WAV file can be of any format)  More... | |
| static std::vector< int16_t > | readAsPCM16Samples (const std::string &wavFile, size_t &sampleRate) | 
| Reads WAV file as a PCM16 samples buffer (WAV file can be of any format)  More... | |
| static std::vector< float > | readAsFloatSamples (const std::string &wavFile, size_t &sampleRate) | 
| Reads WAV file as a float samples buffer (WAV file can be of any format)  More... | |
| static std::vector< float > | readAsFloatSamples16Bit (const std::string &wavFile, size_t &sampleRate) | 
| Reads WAV file as a float samples buffer with 16-bit precision (WAV file can be of any format)  More... | |
| static std::vector< uint8_t > | readAsPCM16Bytes (const uint8_t *data, size_t dataSize, size_t &sampleRate) | 
| Reads WAV file from a memory buffer as a PCM16 bytes buffer (WAV file can be of any format)  More... | |
| static std::vector< int16_t > | readAsPCM16Samples (const uint8_t *data, size_t dataSize, size_t &sampleRate) | 
| Reads WAV file from a memory buffer as a PCM16 samples buffer (WAV file can be of any format)  More... | |
| static std::vector< float > | readAsFloatSamples (const uint8_t *data, size_t dataSize, size_t &sampleRate) | 
| Reads WAV file from a memory buffer as a float samples buffer (WAV file can be of any format)  More... | |
| static std::vector< float > | readAsFloatSamples16Bit (const uint8_t *data, size_t dataSize, size_t &sampleRate) | 
| Reads WAV file from a memory buffer as a float samples buffer with 16-bit precision (WAV file can be of any format)  More... | |
| static AudioInfo | getAudioInfo (const std::string &wavFile) | 
| Returns WAV file audio info.  More... | |
| static AudioInfo | getAudioInfo (const uint8_t *data, size_t dataSize) | 
| Returns WAV file audio info.  More... | |
Class with some static utility functions for working with WAV-data.
      
  | 
  delete | 
      
  | 
  static | 
Returns WAV file audio info.
| wavFile | path to WAV file | 
| std::runtime_error | if runtime error occurred | 
      
  | 
  static | 
Returns WAV file audio info.
| data | memory buffer containing complete WAV file contents | 
| dataSize | memory buffer length | 
| std::runtime_error | if runtime error occurred | 
      
  | 
  static | 
Reads WAV file as a float samples buffer (WAV file can be of any format)
| wavFile | path to WAV file | 
| sampleRate | returns sample rate of WAV file | 
| std::runtime_error | if runtime error occurred | 
      
  | 
  static | 
Reads WAV file from a memory buffer as a float samples buffer (WAV file can be of any format)
| data | memory buffer containing complete WAV file contents | 
| dataSize | memory buffer length | 
| sampleRate | returns sample rate of WAV file | 
| std::runtime_error | if runtime error occurred | 
      
  | 
  static | 
Reads WAV file as a float samples buffer with 16-bit precision (WAV file can be of any format)
| wavFile | path to WAV file | 
| sampleRate | returns sample rate of WAV file | 
| std::runtime_error | if runtime error occurred | 
      
  | 
  static | 
Reads WAV file from a memory buffer as a float samples buffer with 16-bit precision (WAV file can be of any format)
| data | memory buffer containing complete WAV file contents | 
| dataSize | memory buffer length | 
| sampleRate | returns sample rate of WAV file | 
| std::runtime_error | if runtime error occurred | 
      
  | 
  static | 
Reads WAV file as a PCM16 bytes buffer (WAV file can be of any format)
| wavFile | path to WAV file | 
| sampleRate | returns sample rate of WAV file | 
| std::runtime_error | if runtime error occurred | 
      
  | 
  static | 
Reads WAV file from a memory buffer as a PCM16 bytes buffer (WAV file can be of any format)
| data | memory buffer containing complete WAV file contents | 
| dataSize | memory buffer length | 
| sampleRate | returns sample rate of WAV file | 
| std::runtime_error | if runtime error occurred | 
      
  | 
  static | 
Reads WAV file as a PCM16 samples buffer (WAV file can be of any format)
| wavFile | path to WAV file | 
| sampleRate | returns sample rate of WAV file | 
| std::runtime_error | if runtime error occurred | 
      
  | 
  static | 
Reads WAV file from a memory buffer as a PCM16 samples buffer (WAV file can be of any format)
| data | memory buffer containing complete WAV file contents | 
| dataSize | memory buffer length | 
| sampleRate | returns sample rate of WAV file | 
| std::runtime_error | if runtime error occurred | 
 1.8.17