I am trying to play an audio stream for my Google home users. The richresponse with mp3 file works perfectly. But when I try to use an aac encoded file, the audio never plays.
Google home does support AAC audio format now. So any ideas why it doesn't play? Do we need to supply some other mediaType?
Could it be happening because Google assistant does not support aac format? But if that's the case, then which format do these other streaming companies use?
$output = array (
"fulfillmentText" => $Response,
"source" => "My Stream",
"payload" => array(
"google" => array (
'expectUserResponse' => false,
'richResponse' =>
array (
'items' =>
array (
0 =>
array (
'simpleResponse' =>
array (
'textToSpeech' => $Response,
),
),
1 =>
array (
'mediaResponse' => array (
'mediaType' => 'AUDIO',
'mediaObjects' =>
array (
0 =>
array (
'name' => 'Sample stream',
'contentUrl' => 'https://stream.test.com/117/full/64.aac'
)
)
)
)
)
)
)
)
);