generated from intersystems-community/intersystems-iris-dev-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9421651
commit 88dd464
Showing
5 changed files
with
21 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,37 @@ | ||
/// | ||
Class dc.irisMediCopilot.interop.bp.Voice Extends Ens.BusinessProcessBPL | ||
{ | ||
|
||
Storage Default | ||
{ | ||
<Type>%Storage.Persistent</Type> | ||
} | ||
|
||
/// BPL Definition | ||
XData BPL [ XMLNamespace = "http://www.intersystems.com/bpl" ] | ||
{ | ||
<process language='objectscript' request='Telegram.Request' response='St.OpenAi.Msg.Audio.AudioResponse' height='2000' width='2000' > | ||
<process language='objectscript' request='Telegram.Request' response='dc.irisMediCopilot.interop.msg.resp.Voice' height='2000' width='2000' > | ||
<context> | ||
<property name='voiceResponse' type='dc.irisMediCopilot.interop.msg.resp.Voice' instantiate='0' /> | ||
<property name='audioRequest' type='St.OpenAi.Msg.Audio.AudioRequest' instantiate='0' /> | ||
</context> | ||
<sequence xend='200' yend='650' > | ||
<call name='Get Voice' target='VoiceFile.BusinessOperation' async='1' xpos='200' ypos='250' > | ||
<call name='Get Voice' target='VoiceFile.BusinessOperation' async='0' xpos='200' ypos='250' > | ||
<request type='Telegram.Request' > | ||
<assign property="callrequest" value="request" action="set" /> | ||
</request> | ||
<response type='dc.irisMediCopilot.interop.msg.resp.Voice' > | ||
<assign property="context.voiceResponse" value="callresponse" action="set" /> | ||
</response> | ||
</call> | ||
<call name='Call Speech2Text' target='SpeechToText.Router' async='1' xpos='200' ypos='450' > | ||
<request type='dc.irisMediCopilot.interop.msg.resp.Voice' > | ||
<assign property="callrequest" value="context.voiceResponse" action="set" /> | ||
</request> | ||
</call> | ||
<sync name='Wait Voice' calls='Get Voice,Call Speech2Text' type='all' xpos='200' ypos='550' /> | ||
</sequence> | ||
</process> | ||
} | ||
|
||
Storage Default | ||
{ | ||
<Type>%Storage.Persistent</Type> | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters