سؤال

أواجه مشكلات في الحصول على متصفح الصوت لتكرار القيمة الميدانية كسلسلة من الأرقام بدلا من رقم كبير متعدد الأرقام. على سبيل المثال، سيقوم حقلي بجمع المدخلات باستخدام "الأرقام" أو "الأرقام" - في هذه الحالة، كان ملحق النقل. في الجزء المملوء لدي القيمة التي تم جمعها تتكرر مرة أخرى. بدلا من تمديد السمع رقم 2345 يتم التحدث باسم "2-3-4-5" يتم التحدث باسم "آلف وثلاثمائة واثني وأربعين".

كيف يمكنني الحصول على القيمة المتكررة بالتتابع؟ حاولت تحديد علامة "القول"، ولكن دون جدوى. أدناه هو الرمز الذي حاولته هذا مع:

<field name="extension" type="digits?length=4">
  <prompt bargein="false">
    Please dial in or say the extension of the <value expr="application.extensionValues" /> you are trying to reach.
  </prompt>
  <grammar type="application/x-nuance-gsl">
    [ dtmf-1 dtmf-2 dtmf-3 dtmf-4 dtmf-5 dtmf-6 dtmf-7 dtmf-8 dtmf-9 dtmf-0 ]
  </grammar>    
  <grammar type="application/x-nuance-gsl">
    [ one two three four five six seven eight nine ]
  </grammar>    
</field>

<filled>
  <prompt>
    I received extension number <say-as interpret-as="vxml:number"><value expr="extension"/></say-as>.  Transfering you now.
  </prompt> 
</filled>

تحرير 1.

نعم منصة أستخدمها هي "مقهى Bevocal Cafe". وأشير إلى أنه IVR إلى URI حيث لدي البرامج النصية VXML المخزنة.

لسوء الحظ اقتراحك لم يعمل بالنسبة لي. حاولت تغيير التفسير - كقيمة "الهاتف" ولم يفهم المترجم والخروج. حاولت استخدام "الأحرف" التي تبدو أكثر مثل ما أردت وأثناء عدم وجود خطأ، ذكرت سجلات الترجمة الفورية أن القيمة المفسر - كما كانت القيمة "غير معروفة"

هل كانت مفيدة؟

المحلول

القول كما العلامة هي الطريق للذهاب. حاول تغيير الترجمة الشفوية - سمة إلى الهاتف:http://www.w3.org/tr/2005/note-ssml-sayas-20050526/# S3.3.

نصائح أخرى

إليك التعليمات البرمجية الخاصة بك مع العلامات BeVocal المناسبة. لاحظ أن تنفيذ العلامة يعتمد على البائع، لذلك هذا هو ليس المحمولة.

<field name="extension" type="digits?length=4">
  <prompt bargein="false">
    Please dial in or say the extension of the <value expr="application.extensionValues" /> you are trying to reach.
  </prompt>
  <grammar type="application/x-nuance-gsl">
    [ dtmf-1 dtmf-2 dtmf-3 dtmf-4 dtmf-5 dtmf-6 dtmf-7 dtmf-8 dtmf-9 dtmf-0 ]
  </grammar>    
  <grammar type="application/x-nuance-gsl">
    [ one two three four five six seven eight nine ]
  </grammar>    
</field>

<filled>
  <prompt>
    I received extension number <say-as type="number:digits"><value expr="extension"/></say-as>.  Transfering you now.
  </prompt> 
</filled>

كان لي مشكلة مشابهة. لكنني حصلت حولها عن طريق تعيين يقول وكتب إلى اختصار. هذا يحصل على IVR لتوضيح الأرقام واحدة تلو الأخرى. يرجى ملاحظة أن هذا كان على بلومفوا IVR. آمل أن يعمل لك. هذا هو الرمز المنقح الخاص بك.

<field name="extension" type="digits?length=4">
  <prompt bargein="false">
    Please dial in or say the extension of the <value expr="application.extensionValues" /> you are trying to reach.
  </prompt>
  <grammar type="application/x-nuance-gsl">
    [ dtmf-1 dtmf-2 dtmf-3 dtmf-4 dtmf-5 dtmf-6 dtmf-7 dtmf-8 dtmf-9 dtmf-0 ]
  </grammar>    
  <grammar type="application/x-nuance-gsl">
    [ one two three four five six seven eight nine ]
  </grammar>    
</field>

<filled>
  <prompt>
    I received extension number <say-as type="acronym"><value expr="extension"/></say-as>.  Transfering you now.
  </prompt> 
</filled>

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top