2017-11-28 28 views
0

vxml에 몇 가지 문제가 있습니다.VXML 오디오 태그가 작동하지 않습니다.

<?xml version="1.0" ?> 
<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml" xml:lang="fr-FR"> 
    <form id="welcome"> 
    <field name="choice"> 
     <prompt> 
     Bienvenue au test Raccrocher. Que voulez-vous faire? Raccrocher Taper 1, Redire ce message Taper 2, ou Revenir au menu principal taper 3 
     </prompt> 
     <grammar mode="dtmf" version="1.0" root="top"> 
     <rule id="top"><one-of><item>1</item><item>2</item><item>3</item></one-of></rule> 
     </grammar> 
     <filled> 
     <if cond="choice == '1'"> 
      <audio src="SOME_URL" /> 
      <exit /> 
     <elseif cond="choice == '2'" /> 
      <clear namelist="choice" /> 
     <elseif cond="choice == '3'" /> 
      <goto next="SOME_URL" /> 
     </if> 
     </filled> 
    </field> 
    </form> 

</vxml> 

이것은 내 코드이며 내 노래를 재생할 수 없으며 이유를 알지 못합니다. 당신의 도움이 필요합니다!

+0

채워진 영역에 몇 가지 로그 명령을 추가하여 흐름이 올바른지 확인하는 것이 좋습니다. 오디오 파일 형식 인 경우 해당 플랫폼에서 오디오 파일 형식이 지원되는지 확인하십시오. 예를 들어, 대부분의 플랫폼은 WAV 파일 내의 MP3 및 특정 유형의 인코딩 만 지원합니다. –

답변

0

오디오 요소는 프롬프트 요소 안에 있어야합니다. specification을 참조하십시오.