Obtaining help from MSFT on https://github.com/Microsoft/BotFramework-WebChat/issues/1146.
This commit is contained in:
parent
d3337bd221
commit
ef492836a6
3 changed files with 238 additions and 236 deletions
438
packages/default.gbui/package-lock.json
generated
438
packages/default.gbui/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -19,6 +19,7 @@
|
||||||
"react-powerbi": "^0.3.1",
|
"react-powerbi": "^0.3.1",
|
||||||
"react-scripts": "^2.1.1",
|
"react-scripts": "^2.1.1",
|
||||||
"react-transition-group": "^2.5.0",
|
"react-transition-group": "^2.5.0",
|
||||||
|
"rxjs": "^5.5.12",
|
||||||
"url-join": "^4.0.0"
|
"url-join": "^4.0.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -40,12 +40,13 @@ import SidebarMenu from "./components/SidebarMenu.js";
|
||||||
import GBCss from "./components/GBCss.js";
|
import GBCss from "./components/GBCss.js";
|
||||||
import { DirectLine } from "botframework-directlinejs";
|
import { DirectLine } from "botframework-directlinejs";
|
||||||
import { ConnectionStatus } from "botframework-directlinejs";
|
import { ConnectionStatus } from "botframework-directlinejs";
|
||||||
import { SpeechRecognizer } from "botframework-webchat/CognitiveServices";
|
import { SpeechRecognizer } from "botframework-webchat";
|
||||||
import { SpeechSynthesizer } from "botframework-webchat/CognitiveServices";
|
import { SpeechSynthesizer } from "botframework-webchat";
|
||||||
import { SynthesisGender } from "botframework-webchat/CognitiveServices";
|
import { SynthesisGender } from "botframework-webchat";
|
||||||
import { Chat } from "botframework-webchat";
|
import { Chat } from "botframework-webchat";
|
||||||
import GBPowerBIPlayer from "./players/GBPowerBIPlayer.js";
|
import GBPowerBIPlayer from "./players/GBPowerBIPlayer.js";
|
||||||
import { UserAgentApplication } from "msal";
|
import { UserAgentApplication } from "msal";
|
||||||
|
import { Observable } from 'rxjs'
|
||||||
|
|
||||||
class GBUIApp extends React.Component {
|
class GBUIApp extends React.Component {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
@ -322,19 +323,19 @@ class GBUIApp extends React.Component {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
speechOptions = {
|
// speechOptions = {
|
||||||
speechRecognizer: new SpeechRecognizer({
|
// speechRecognizer: new SpeechRecognizer({
|
||||||
locale: "pt-br",
|
// locale: "pt-br",
|
||||||
fetchCallback: (authFetchEventId) => getToken(),
|
// fetchCallback: (authFetchEventId) => getToken(),
|
||||||
fetchOnExpiryCallback: (authFetchEventId) => getToken()
|
// fetchOnExpiryCallback: (authFetchEventId) => getToken()
|
||||||
}),
|
// }),
|
||||||
speechSynthesizer: new SpeechSynthesizer({
|
// speechSynthesizer: new SpeechSynthesizer({
|
||||||
fetchCallback: (authFetchEventId) => getToken(),
|
// fetchCallback: (authFetchEventId) => getToken(),
|
||||||
fetchOnExpiryCallback: (authFetchEventId) => getToken(),
|
// fetchOnExpiryCallback: (authFetchEventId) => getToken(),
|
||||||
gender: SynthesisGender.Male,
|
// gender: SynthesisGender.Male,
|
||||||
voiceName: 'Microsoft Server Speech Text to Speech Voice (pt-BR, Daniel, Apollo)'
|
// voiceName: 'Microsoft Server Speech Text to Speech Voice (pt-BR, Daniel, Apollo)'
|
||||||
})
|
// })
|
||||||
};
|
// };
|
||||||
|
|
||||||
chat = (
|
chat = (
|
||||||
<Chat
|
<Chat
|
||||||
|
@ -345,7 +346,7 @@ class GBUIApp extends React.Component {
|
||||||
line={this.state.line}
|
line={this.state.line}
|
||||||
user={this.getUser()}
|
user={this.getUser()}
|
||||||
bot={{ id: "bot@gb", name: "Bot" }}
|
bot={{ id: "bot@gb", name: "Bot" }}
|
||||||
speechOptions={speechOptions}
|
// speechOptions={speechOptions}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue