-
-
Notifications
You must be signed in to change notification settings - Fork 6
feat(SpeechSynthesis): add new module #1
Conversation
# Conflicts: # .github/CODEOWNERS # .github/ISSUE_TEMPLATE/bug_report.md # .github/ISSUE_TEMPLATE/feature_request.md
angular.json
Outdated
"styles": ["projects/demo/src/styles.css"], | ||
"styles": [ | ||
"node_modules/@taiga-ui/core/styles/taiga-ui-global.less", | ||
"node_modules/@taiga-ui/core/styles/taiga-ui-local.less", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
зачем локальные в глобальные пихаешь? тогда везде юзать миксины можно что ли?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Наверное уже можно не пихать. Баг был, что в теме юзался миксин
projects/speech/src/utils/is-said.ts
Outdated
@@ -0,0 +1,11 @@ | |||
export function isSaid(phrase: string): (results: SpeechRecognitionResult[]) => boolean { | |||
const parsed = phrase.toLowerCase().trim(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: не очень parsed... понятнее может даже будет с phrase = phrase.toLowerCase().trim();
export class SpeechRecognitionService extends Observable<SpeechRecognitionResult[]> { | ||
constructor( | ||
@Inject(SPEECH_RECOGNITION) classRef: Type<SpeechRecognition> | null, | ||
@Optional() @Inject(LOCALE_ID) lang: string | null = '', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
о, локаль опшинал? не знал...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Да, вроде. Чекну.
No description provided.