Skip to content

Commit 93b6e10

Browse files
authored
Merge pull request #18 from calcit-lang/try-native
also try native speech API
2 parents a360809 + 7c70483 commit 93b6e10

File tree

6 files changed

+105
-49
lines changed

6 files changed

+105
-49
lines changed

assets/main.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ pre {
4343
line-height: 1.4;
4444
min-width: 400px;
4545
border-radius: 4px;
46+
overflow: auto;
4647
}
4748

4849
blockquote {

calcit.cirru

Lines changed: 69 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compact.cirru

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
{} (:package |docs-workflow)
3-
:configs $ {} (:init-fn |docs-workflow.main/main!) (:reload-fn |docs-workflow.main/reload!) (:version |0.0.8)
3+
:configs $ {} (:init-fn |docs-workflow.main/main!) (:reload-fn |docs-workflow.main/reload!) (:version |0.0.10)
44
:modules $ [] |respo.calcit/ |lilac/ |memof/ |respo-ui.calcit/ |respo-markdown.calcit/ |reel.calcit/ |respo-router.calcit/ |alerts.calcit/
55
:entries $ {}
66
:files $ {}
@@ -67,7 +67,7 @@
6767
:border-right $ str "\"1px solid " (hsl 0 0 94)
6868
div
6969
{}
70-
:style $ {} (:position :absolute) (:right 8) (:top 4)
70+
:style $ {} (:position :absolute) (:right 8) (:top 4) (:z-index 100)
7171
:on-click $ fn (e d!) (.show quick-modal d!)
7272
<> "\"Quick Jump" $ merge
7373
{} (:cursor :pointer) (:font-family ui/font-fancy)
@@ -122,9 +122,12 @@
122122
if
123123
not= "\"PRE" $ .-tagName child
124124
swap! *text-content conj $ .-innerText child
125-
speechOne (.join-str @*text-content &newline) (get-env "\"azure-key") (get-env "\"lang" "\"en-US")
126-
fn $
127-
fn $
125+
if-let
126+
key $ get-env "\"azure-key"
127+
speechOne (.join-str @*text-content &newline) (get-env "\"azure-key") (get-env "\"lang" "\"en-US")
128+
fn $
129+
fn $
130+
nativeSpeechOne (.join-str @*text-content &newline) (get-env "\"lang" "\"en-US")
128131
div
129132
{} $ :style
130133
merge ui/expand $ {} (:padding "\"20px 16px")
@@ -234,6 +237,8 @@
234237
{} (:padding "\"8px 16px")
235238
:background-color $ hsl 0 0 100 0.6
236239
:position :relative
240+
"\"$0 iframe" $ {}
241+
:border $ str "\"1px solid " (hsl 0 0 86)
237242
|css-speech-button $ quote
238243
defstyle css-speech-button $ {}
239244
"\"$0" $ {} (:position :absolute) (:top 32) (:right 8) (:font-family css/font-fancy)
@@ -294,7 +299,7 @@
294299
respo-alerts.core :refer $ use-modal
295300
respo.css :refer $ defstyle
296301
respo-ui.css :as css
297-
"\"@memkits/azure-speech-util" :refer $ speechOne
302+
"\"@memkits/azure-speech-util" :refer $ speechOne nativeSpeechOne
298303
|docs-workflow.config $ {}
299304
:defs $ {}
300305
|dev? $ quote

docs/cirru.md

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
2-
"version": "0.0.8",
2+
"version": "0.0.10",
33
"name": "@calcit/docs-workflow",
44
"dependencies": {
55
"@calcit/procs": "^0.5.41",
6-
"@memkits/azure-speech-util": "^0.0.2"
6+
"@memkits/azure-speech-util": "^0.0.4"
77
},
88
"devDependencies": {
99
"bottom-tip": "^0.1.3",
1010
"cirru-color": "^0.2.3",
1111
"github-markdown-css": "^5.1.0",
1212
"highlight.js": "^11.5.1",
1313
"remarkable": "^2.0.1",
14-
"vite": "^2.9.6"
14+
"vite": "^2.9.7"
1515
}
1616
}

yarn.lock

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)