I hope this message finds you well. I am writing to seek your assistance with an issue encountered while using the openaibs plugin in our production environment.
Context:
After successfully installing and testing the plugin using the client and scenario outlined in the installation guide, I am unable to retrieve the <instance> field in XML format within the response. Currently, this field returns data as JSON (as shown below), despite configuring the result format to standard in umsopenaibs.xml.
Example Response Snippet:
xml
<?xml version="1.0"?><result><interpretation grammar="builtin:speech/transcribe" confidence="1">
<instance>{"type":"response.done","event_id":"event_BmMRyW8W9bbm1SSEnBP6q","response":{"id":"resp_BmMRvXOvtPpKffz8l9xOd","object":"realtime.response","status":"completed","status_details":{},"output":[{"id":"item_BmMRvglCX2qaWHWP77w0J","type":"message","object":"realtime.item","status":"completed","role":"assistant","content":[{"type":"uri","audio":"file://umsopenaibs-05641019b6c64046-1-0-0-8-kHz.wav","transcript":"Si necesitas reservar una habitación, te recomiendo comunicarte con el hotel donde deseas alojarte. Si necesitas ayuda para encontrar un hotel o tienes alguna otra consulta, estaré encantado de asistirte."}]}],"usage":{},"conversation_id":"conv_BmMRuzFmJLXc6aBnAuuJa","voice":"alloy","modalities":["text","audio"],"output_audio_format":"pcm16","temperature":0.6000000238418579,"max_output_tokens":"inf"}}</instance>
<input mode="speech">Book a room.</input></interpretation></result>
- Steps Taken to Resolve:
Set result to standard (default) in umsopenaibs.xml, expecting application/x-nlsml with XML-formatted <instance>.
- Added tag-format="swi-semantics/xml" to both conf/umsopenaibs.xml and data/grammar.xml (no change observed).
- Modified the grammar URI to data/speechtranscribe.txt include tag-format:
builtin:speech/transcribe?tag-format=semantics/xml
Documentation Reference:
Per the NLSML format documentation, setting tag-format to semantics/xml or swi-semantics/xml should force the <instance> field to render as XML. However, all attempts result in JSON.
Could you please clarify:
What specific configuration change is required to ensure the <instance> field returns XML instead of JSON?
Are there dependencies or additional parameters needed beyond the steps outlined?
We appreciate your urgent attention to this matter, as it impacts our integration workflow. Thank you for your support!
Best regards,