# AudioFactory - *group* Telematics\_audio - - class AudioFactory - Allows the creation of an [IAudioManager](https://docs.qualcomm.com/doc/80-PF458-2/topic/audio_manager.html#a00626) instance. Public Functions - virtual std::shared\_ptr<[IAudioManager](https://docs.qualcomm.com/doc/80-PF458-2/topic/class_a00626.html#_CPPv4N5telux5audio13IAudioManagerE)> getAudioManager(telux::common::[InitResponseCb](https://docs.qualcomm.com/doc/80-PF458-2/topic/typedef_a00546_1ab92f90010203f914a62cec6bd7af0a1a.html#_CPPv4N5telux6common14InitResponseCbE) callback = nullptr) = 0 - Gets the [IAudioManager](https://docs.qualcomm.com/doc/80-PF458-2/topic/audio_manager.html#a00626) instance. - Parameters: - **callback** – **[in]** Optional, callback to know the status of the AudioManager initialization - Returns: - [IAudioManager](https://docs.qualcomm.com/doc/80-PF458-2/topic/audio_manager.html#a00626) instance - virtual telux::common::[ErrorCode](https://docs.qualcomm.com/doc/80-PF458-2/topic/enum_a00500_1ga84acdb74b7d34616b1ca497c7369810d.html#_CPPv4N5telux6common9ErrorCodeE) getAudioPlayer(std::shared\_ptr<[IAudioPlayer](https://docs.qualcomm.com/doc/80-PF458-2/topic/class_a00670.html#_CPPv4N5telux5audio12IAudioPlayerE)> &audioPlayer) = 0 - Gets the [IAudioPlayer](https://docs.qualcomm.com/doc/80-PF458-2/topic/audio_player.html#a00670) instance. - Parameters: - **audioPlayer** – **[out]** [IAudioPlayer](https://docs.qualcomm.com/doc/80-PF458-2/topic/audio_player.html#a00670) instance - Returns: - [telux::common::ErrorCode::SUCCESS](https://docs.qualcomm.com/doc/80-PF458-2/topic/enum_a00500_1ga84acdb74b7d34616b1ca497c7369810d.html#a00500_1gga84acdb74b7d34616b1ca497c7369810dad0749aaba8b833466dfcbb0428e4f89c), if the [IAudioPlayer](https://docs.qualcomm.com/doc/80-PF458-2/topic/audio_player.html#a00670) instance is created successfully, [telux::common::ErrorCode::OPERATION\_TIMEOUT](https://docs.qualcomm.com/doc/80-PF458-2/topic/enum_a00500_1ga84acdb74b7d34616b1ca497c7369810d.html#a00500_1gga84acdb74b7d34616b1ca497c7369810dadfc9603ed3b0a7672571abb598cee164) if the audio service does not become available for functional operation, an appropriate error code in all other cases. Public Static Functions - static [AudioFactory](https://docs.qualcomm.com/doc/80-PF458-2/topic/class_a00598.html#_CPPv4N5telux5audio12AudioFactoryE) &getInstance() - Gets the [AudioFactory](https://docs.qualcomm.com/doc/80-PF458-2/topic/audio_factory.html#a00598) instance. Private Functions - AudioFactory(const [AudioFactory](https://docs.qualcomm.com/doc/80-PF458-2/topic/class_a00598.html#_CPPv4N5telux5audio12AudioFactory12AudioFactoryERK12AudioFactory)&) = delete - - [AudioFactory](https://docs.qualcomm.com/doc/80-PF458-2/topic/class_a00598.html#_CPPv4N5telux5audio12AudioFactoryE) &operator=(const [AudioFactory](https://docs.qualcomm.com/doc/80-PF458-2/topic/class_a00598.html#_CPPv4N5telux5audio12AudioFactoryE)&) = delete - Last Published: Sep 24, 2026 [Previous Topic telux::audio::IAudioPlayer](https://docs.qualcomm.com/bundle/publicresource/80-PF458-2/topics/audio_player.md) [Next Topic Data](https://docs.qualcomm.com/bundle/publicresource/80-PF458-2/topics/data.md)