speaker-calibration 2.1.3 → 2.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (434) hide show
  1. package/dist/example/listener.html +29 -39
  2. package/dist/example/server.js +6 -4
  3. package/dist/example/speakerUI.js +7 -1
  4. package/dist/main.js +912 -912
  5. package/dist/node_modules/.bin/mime +12 -0
  6. package/dist/node_modules/.bin/mime.cmd +17 -0
  7. package/dist/node_modules/.bin/mime.ps1 +28 -0
  8. package/dist/node_modules/.package-lock.json +584 -0
  9. package/dist/node_modules/accepts/HISTORY.md +243 -0
  10. package/dist/node_modules/accepts/LICENSE +23 -0
  11. package/dist/node_modules/accepts/README.md +140 -0
  12. package/dist/node_modules/accepts/index.js +238 -0
  13. package/dist/node_modules/accepts/package.json +47 -0
  14. package/dist/node_modules/array-flatten/LICENSE +21 -0
  15. package/dist/node_modules/array-flatten/README.md +43 -0
  16. package/dist/node_modules/array-flatten/array-flatten.js +64 -0
  17. package/dist/node_modules/array-flatten/package.json +39 -0
  18. package/dist/node_modules/body-parser/HISTORY.md +657 -0
  19. package/dist/node_modules/body-parser/LICENSE +23 -0
  20. package/dist/node_modules/body-parser/README.md +464 -0
  21. package/dist/node_modules/body-parser/SECURITY.md +25 -0
  22. package/dist/node_modules/body-parser/index.js +156 -0
  23. package/dist/node_modules/body-parser/lib/read.js +205 -0
  24. package/dist/node_modules/body-parser/lib/types/json.js +236 -0
  25. package/dist/node_modules/body-parser/lib/types/raw.js +101 -0
  26. package/dist/node_modules/body-parser/lib/types/text.js +121 -0
  27. package/dist/node_modules/body-parser/lib/types/urlencoded.js +284 -0
  28. package/dist/node_modules/body-parser/package.json +56 -0
  29. package/dist/node_modules/bytes/History.md +97 -0
  30. package/dist/node_modules/bytes/LICENSE +23 -0
  31. package/dist/node_modules/bytes/Readme.md +152 -0
  32. package/dist/node_modules/bytes/index.js +170 -0
  33. package/dist/node_modules/bytes/package.json +42 -0
  34. package/dist/node_modules/call-bind/.eslintignore +1 -0
  35. package/dist/node_modules/call-bind/.eslintrc +17 -0
  36. package/dist/node_modules/call-bind/.github/FUNDING.yml +12 -0
  37. package/dist/node_modules/call-bind/.nycrc +13 -0
  38. package/dist/node_modules/call-bind/CHANGELOG.md +42 -0
  39. package/dist/node_modules/call-bind/LICENSE +21 -0
  40. package/dist/node_modules/call-bind/README.md +2 -0
  41. package/dist/node_modules/call-bind/callBound.js +15 -0
  42. package/dist/node_modules/call-bind/index.js +47 -0
  43. package/dist/node_modules/call-bind/package.json +80 -0
  44. package/dist/node_modules/call-bind/test/callBound.js +55 -0
  45. package/dist/node_modules/call-bind/test/index.js +66 -0
  46. package/dist/node_modules/content-disposition/HISTORY.md +60 -0
  47. package/dist/node_modules/content-disposition/LICENSE +22 -0
  48. package/dist/node_modules/content-disposition/README.md +142 -0
  49. package/dist/node_modules/content-disposition/index.js +458 -0
  50. package/dist/node_modules/content-disposition/package.json +44 -0
  51. package/dist/node_modules/content-type/HISTORY.md +24 -0
  52. package/dist/node_modules/content-type/LICENSE +22 -0
  53. package/dist/node_modules/content-type/README.md +92 -0
  54. package/dist/node_modules/content-type/index.js +222 -0
  55. package/dist/node_modules/content-type/package.json +40 -0
  56. package/dist/node_modules/cookie/HISTORY.md +142 -0
  57. package/dist/node_modules/cookie/LICENSE +24 -0
  58. package/dist/node_modules/cookie/README.md +302 -0
  59. package/dist/node_modules/cookie/SECURITY.md +25 -0
  60. package/dist/node_modules/cookie/index.js +270 -0
  61. package/dist/node_modules/cookie/package.json +44 -0
  62. package/dist/node_modules/cookie-signature/History.md +38 -0
  63. package/dist/node_modules/cookie-signature/Readme.md +42 -0
  64. package/dist/node_modules/cookie-signature/index.js +51 -0
  65. package/dist/node_modules/cookie-signature/package.json +18 -0
  66. package/dist/node_modules/debug/.coveralls.yml +1 -0
  67. package/dist/node_modules/debug/.eslintrc +11 -0
  68. package/dist/node_modules/debug/.travis.yml +14 -0
  69. package/dist/node_modules/debug/CHANGELOG.md +362 -0
  70. package/dist/node_modules/debug/LICENSE +19 -0
  71. package/dist/node_modules/debug/Makefile +50 -0
  72. package/dist/node_modules/debug/README.md +312 -0
  73. package/dist/node_modules/debug/component.json +19 -0
  74. package/dist/node_modules/debug/karma.conf.js +70 -0
  75. package/dist/node_modules/debug/node.js +1 -0
  76. package/dist/node_modules/debug/package.json +49 -0
  77. package/dist/node_modules/debug/src/browser.js +185 -0
  78. package/dist/node_modules/debug/src/debug.js +202 -0
  79. package/dist/node_modules/debug/src/index.js +10 -0
  80. package/dist/node_modules/debug/src/inspector-log.js +15 -0
  81. package/dist/node_modules/debug/src/node.js +248 -0
  82. package/dist/node_modules/depd/History.md +103 -0
  83. package/dist/node_modules/depd/LICENSE +22 -0
  84. package/dist/node_modules/depd/Readme.md +280 -0
  85. package/dist/node_modules/depd/index.js +538 -0
  86. package/dist/node_modules/depd/lib/browser/index.js +77 -0
  87. package/dist/node_modules/depd/package.json +45 -0
  88. package/dist/node_modules/destroy/LICENSE +23 -0
  89. package/dist/node_modules/destroy/README.md +63 -0
  90. package/dist/node_modules/destroy/index.js +209 -0
  91. package/dist/node_modules/destroy/package.json +48 -0
  92. package/dist/node_modules/ee-first/LICENSE +22 -0
  93. package/dist/node_modules/ee-first/README.md +80 -0
  94. package/dist/node_modules/ee-first/index.js +95 -0
  95. package/dist/node_modules/ee-first/package.json +29 -0
  96. package/dist/node_modules/encodeurl/HISTORY.md +14 -0
  97. package/dist/node_modules/encodeurl/LICENSE +22 -0
  98. package/dist/node_modules/encodeurl/README.md +128 -0
  99. package/dist/node_modules/encodeurl/index.js +60 -0
  100. package/dist/node_modules/encodeurl/package.json +40 -0
  101. package/dist/node_modules/escape-html/LICENSE +24 -0
  102. package/dist/node_modules/escape-html/Readme.md +43 -0
  103. package/dist/node_modules/escape-html/index.js +78 -0
  104. package/dist/node_modules/escape-html/package.json +24 -0
  105. package/dist/node_modules/etag/HISTORY.md +83 -0
  106. package/dist/node_modules/etag/LICENSE +22 -0
  107. package/dist/node_modules/etag/README.md +159 -0
  108. package/dist/node_modules/etag/index.js +131 -0
  109. package/dist/node_modules/etag/package.json +47 -0
  110. package/dist/node_modules/express/History.md +3588 -0
  111. package/dist/node_modules/express/LICENSE +24 -0
  112. package/dist/node_modules/express/Readme.md +166 -0
  113. package/dist/node_modules/express/index.js +11 -0
  114. package/dist/node_modules/express/lib/application.js +661 -0
  115. package/dist/node_modules/express/lib/express.js +116 -0
  116. package/dist/node_modules/express/lib/middleware/init.js +43 -0
  117. package/dist/node_modules/express/lib/middleware/query.js +47 -0
  118. package/dist/node_modules/express/lib/request.js +525 -0
  119. package/dist/node_modules/express/lib/response.js +1169 -0
  120. package/dist/node_modules/express/lib/router/index.js +673 -0
  121. package/dist/node_modules/express/lib/router/layer.js +181 -0
  122. package/dist/node_modules/express/lib/router/route.js +225 -0
  123. package/dist/node_modules/express/lib/utils.js +304 -0
  124. package/dist/node_modules/express/lib/view.js +182 -0
  125. package/dist/node_modules/express/package.json +99 -0
  126. package/dist/node_modules/finalhandler/HISTORY.md +195 -0
  127. package/dist/node_modules/finalhandler/LICENSE +22 -0
  128. package/dist/node_modules/finalhandler/README.md +147 -0
  129. package/dist/node_modules/finalhandler/SECURITY.md +25 -0
  130. package/dist/node_modules/finalhandler/index.js +336 -0
  131. package/dist/node_modules/finalhandler/package.json +46 -0
  132. package/dist/node_modules/forwarded/HISTORY.md +21 -0
  133. package/dist/node_modules/forwarded/LICENSE +22 -0
  134. package/dist/node_modules/forwarded/README.md +57 -0
  135. package/dist/node_modules/forwarded/index.js +90 -0
  136. package/dist/node_modules/forwarded/package.json +45 -0
  137. package/dist/node_modules/fresh/HISTORY.md +70 -0
  138. package/dist/node_modules/fresh/LICENSE +23 -0
  139. package/dist/node_modules/fresh/README.md +119 -0
  140. package/dist/node_modules/fresh/index.js +137 -0
  141. package/dist/node_modules/fresh/package.json +46 -0
  142. package/dist/node_modules/function-bind/.editorconfig +20 -0
  143. package/dist/node_modules/function-bind/.eslintrc +15 -0
  144. package/dist/node_modules/function-bind/.jscs.json +176 -0
  145. package/dist/node_modules/function-bind/.travis.yml +168 -0
  146. package/dist/node_modules/function-bind/LICENSE +20 -0
  147. package/dist/node_modules/function-bind/README.md +48 -0
  148. package/dist/node_modules/function-bind/implementation.js +52 -0
  149. package/dist/node_modules/function-bind/index.js +5 -0
  150. package/dist/node_modules/function-bind/package.json +63 -0
  151. package/dist/node_modules/function-bind/test/.eslintrc +9 -0
  152. package/dist/node_modules/function-bind/test/index.js +252 -0
  153. package/dist/node_modules/get-intrinsic/.eslintrc +37 -0
  154. package/dist/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
  155. package/dist/node_modules/get-intrinsic/.nycrc +9 -0
  156. package/dist/node_modules/get-intrinsic/CHANGELOG.md +98 -0
  157. package/dist/node_modules/get-intrinsic/LICENSE +21 -0
  158. package/dist/node_modules/get-intrinsic/README.md +71 -0
  159. package/dist/node_modules/get-intrinsic/index.js +334 -0
  160. package/dist/node_modules/get-intrinsic/package.json +91 -0
  161. package/dist/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
  162. package/dist/node_modules/has/LICENSE-MIT +22 -0
  163. package/dist/node_modules/has/README.md +18 -0
  164. package/dist/node_modules/has/package.json +48 -0
  165. package/dist/node_modules/has/src/index.js +5 -0
  166. package/dist/node_modules/has/test/index.js +10 -0
  167. package/dist/node_modules/has-symbols/.eslintrc +11 -0
  168. package/dist/node_modules/has-symbols/.github/FUNDING.yml +12 -0
  169. package/dist/node_modules/has-symbols/.nycrc +9 -0
  170. package/dist/node_modules/has-symbols/CHANGELOG.md +75 -0
  171. package/dist/node_modules/has-symbols/LICENSE +21 -0
  172. package/dist/node_modules/has-symbols/README.md +46 -0
  173. package/dist/node_modules/has-symbols/index.js +13 -0
  174. package/dist/node_modules/has-symbols/package.json +101 -0
  175. package/dist/node_modules/has-symbols/shams.js +42 -0
  176. package/dist/node_modules/has-symbols/test/index.js +22 -0
  177. package/dist/node_modules/has-symbols/test/shams/core-js.js +28 -0
  178. package/dist/node_modules/has-symbols/test/shams/get-own-property-symbols.js +28 -0
  179. package/dist/node_modules/has-symbols/test/tests.js +56 -0
  180. package/dist/node_modules/http-errors/HISTORY.md +180 -0
  181. package/dist/node_modules/http-errors/LICENSE +23 -0
  182. package/dist/node_modules/http-errors/README.md +169 -0
  183. package/dist/node_modules/http-errors/index.js +289 -0
  184. package/dist/node_modules/http-errors/package.json +50 -0
  185. package/dist/node_modules/iconv-lite/Changelog.md +162 -0
  186. package/dist/node_modules/iconv-lite/LICENSE +21 -0
  187. package/dist/node_modules/iconv-lite/README.md +156 -0
  188. package/dist/node_modules/iconv-lite/encodings/dbcs-codec.js +555 -0
  189. package/dist/node_modules/iconv-lite/encodings/dbcs-data.js +176 -0
  190. package/dist/node_modules/iconv-lite/encodings/index.js +22 -0
  191. package/dist/node_modules/iconv-lite/encodings/internal.js +188 -0
  192. package/dist/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
  193. package/dist/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
  194. package/dist/node_modules/iconv-lite/encodings/sbcs-data.js +174 -0
  195. package/dist/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
  196. package/dist/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
  197. package/dist/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
  198. package/dist/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
  199. package/dist/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
  200. package/dist/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
  201. package/dist/node_modules/iconv-lite/encodings/tables/gbk-added.json +55 -0
  202. package/dist/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
  203. package/dist/node_modules/iconv-lite/encodings/utf16.js +177 -0
  204. package/dist/node_modules/iconv-lite/encodings/utf7.js +290 -0
  205. package/dist/node_modules/iconv-lite/lib/bom-handling.js +52 -0
  206. package/dist/node_modules/iconv-lite/lib/extend-node.js +217 -0
  207. package/dist/node_modules/iconv-lite/lib/index.d.ts +24 -0
  208. package/dist/node_modules/iconv-lite/lib/index.js +153 -0
  209. package/dist/node_modules/iconv-lite/lib/streams.js +121 -0
  210. package/dist/node_modules/iconv-lite/package.json +46 -0
  211. package/dist/node_modules/inherits/LICENSE +16 -0
  212. package/dist/node_modules/inherits/README.md +42 -0
  213. package/dist/node_modules/inherits/inherits.js +9 -0
  214. package/dist/node_modules/inherits/inherits_browser.js +27 -0
  215. package/dist/node_modules/inherits/package.json +29 -0
  216. package/dist/node_modules/ipaddr.js/LICENSE +19 -0
  217. package/dist/node_modules/ipaddr.js/README.md +233 -0
  218. package/dist/node_modules/ipaddr.js/ipaddr.min.js +1 -0
  219. package/dist/node_modules/ipaddr.js/lib/ipaddr.js +673 -0
  220. package/dist/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +68 -0
  221. package/dist/node_modules/ipaddr.js/package.json +35 -0
  222. package/dist/node_modules/media-typer/HISTORY.md +22 -0
  223. package/dist/node_modules/media-typer/LICENSE +22 -0
  224. package/dist/node_modules/media-typer/README.md +81 -0
  225. package/dist/node_modules/media-typer/index.js +270 -0
  226. package/dist/node_modules/media-typer/package.json +26 -0
  227. package/dist/node_modules/merge-descriptors/HISTORY.md +21 -0
  228. package/dist/node_modules/merge-descriptors/LICENSE +23 -0
  229. package/dist/node_modules/merge-descriptors/README.md +48 -0
  230. package/dist/node_modules/merge-descriptors/index.js +60 -0
  231. package/dist/node_modules/merge-descriptors/package.json +32 -0
  232. package/dist/node_modules/methods/HISTORY.md +29 -0
  233. package/dist/node_modules/methods/LICENSE +24 -0
  234. package/dist/node_modules/methods/README.md +51 -0
  235. package/dist/node_modules/methods/index.js +69 -0
  236. package/dist/node_modules/methods/package.json +36 -0
  237. package/dist/node_modules/mime/CHANGELOG.md +164 -0
  238. package/dist/node_modules/mime/LICENSE +21 -0
  239. package/dist/node_modules/mime/README.md +90 -0
  240. package/dist/node_modules/mime/cli.js +8 -0
  241. package/dist/node_modules/mime/mime.js +108 -0
  242. package/dist/node_modules/mime/package.json +44 -0
  243. package/dist/node_modules/mime/src/build.js +53 -0
  244. package/dist/node_modules/mime/src/test.js +60 -0
  245. package/dist/node_modules/mime/types.json +1 -0
  246. package/dist/node_modules/mime-db/HISTORY.md +507 -0
  247. package/dist/node_modules/mime-db/LICENSE +23 -0
  248. package/dist/node_modules/mime-db/README.md +100 -0
  249. package/dist/node_modules/mime-db/db.json +8519 -0
  250. package/dist/node_modules/mime-db/index.js +12 -0
  251. package/dist/node_modules/mime-db/package.json +60 -0
  252. package/dist/node_modules/mime-types/HISTORY.md +397 -0
  253. package/dist/node_modules/mime-types/LICENSE +23 -0
  254. package/dist/node_modules/mime-types/README.md +113 -0
  255. package/dist/node_modules/mime-types/index.js +188 -0
  256. package/dist/node_modules/mime-types/package.json +44 -0
  257. package/dist/node_modules/ms/index.js +152 -0
  258. package/dist/node_modules/ms/license.md +21 -0
  259. package/dist/node_modules/ms/package.json +37 -0
  260. package/dist/node_modules/ms/readme.md +51 -0
  261. package/dist/node_modules/negotiator/HISTORY.md +108 -0
  262. package/dist/node_modules/negotiator/LICENSE +24 -0
  263. package/dist/node_modules/negotiator/README.md +203 -0
  264. package/dist/node_modules/negotiator/index.js +82 -0
  265. package/dist/node_modules/negotiator/lib/charset.js +169 -0
  266. package/dist/node_modules/negotiator/lib/encoding.js +184 -0
  267. package/dist/node_modules/negotiator/lib/language.js +179 -0
  268. package/dist/node_modules/negotiator/lib/mediaType.js +294 -0
  269. package/dist/node_modules/negotiator/package.json +42 -0
  270. package/dist/node_modules/object-inspect/.eslintrc +53 -0
  271. package/dist/node_modules/object-inspect/.github/FUNDING.yml +12 -0
  272. package/dist/node_modules/object-inspect/.nycrc +13 -0
  273. package/dist/node_modules/object-inspect/CHANGELOG.md +360 -0
  274. package/dist/node_modules/object-inspect/LICENSE +21 -0
  275. package/dist/node_modules/object-inspect/example/all.js +23 -0
  276. package/dist/node_modules/object-inspect/example/circular.js +6 -0
  277. package/dist/node_modules/object-inspect/example/fn.js +5 -0
  278. package/dist/node_modules/object-inspect/example/inspect.js +10 -0
  279. package/dist/node_modules/object-inspect/index.js +512 -0
  280. package/dist/node_modules/object-inspect/package-support.json +20 -0
  281. package/dist/node_modules/object-inspect/package.json +94 -0
  282. package/dist/node_modules/object-inspect/readme.markdown +86 -0
  283. package/dist/node_modules/object-inspect/test/bigint.js +58 -0
  284. package/dist/node_modules/object-inspect/test/browser/dom.js +15 -0
  285. package/dist/node_modules/object-inspect/test/circular.js +16 -0
  286. package/dist/node_modules/object-inspect/test/deep.js +12 -0
  287. package/dist/node_modules/object-inspect/test/element.js +53 -0
  288. package/dist/node_modules/object-inspect/test/err.js +48 -0
  289. package/dist/node_modules/object-inspect/test/fakes.js +29 -0
  290. package/dist/node_modules/object-inspect/test/fn.js +76 -0
  291. package/dist/node_modules/object-inspect/test/has.js +15 -0
  292. package/dist/node_modules/object-inspect/test/holes.js +15 -0
  293. package/dist/node_modules/object-inspect/test/indent-option.js +271 -0
  294. package/dist/node_modules/object-inspect/test/inspect.js +139 -0
  295. package/dist/node_modules/object-inspect/test/lowbyte.js +12 -0
  296. package/dist/node_modules/object-inspect/test/number.js +58 -0
  297. package/dist/node_modules/object-inspect/test/quoteStyle.js +17 -0
  298. package/dist/node_modules/object-inspect/test/toStringTag.js +40 -0
  299. package/dist/node_modules/object-inspect/test/undef.js +12 -0
  300. package/dist/node_modules/object-inspect/test/values.js +211 -0
  301. package/dist/node_modules/object-inspect/test-core-js.js +26 -0
  302. package/dist/node_modules/object-inspect/util.inspect.js +1 -0
  303. package/dist/node_modules/on-finished/HISTORY.md +98 -0
  304. package/dist/node_modules/on-finished/LICENSE +23 -0
  305. package/dist/node_modules/on-finished/README.md +162 -0
  306. package/dist/node_modules/on-finished/index.js +234 -0
  307. package/dist/node_modules/on-finished/package.json +39 -0
  308. package/dist/node_modules/parseurl/HISTORY.md +58 -0
  309. package/dist/node_modules/parseurl/LICENSE +24 -0
  310. package/dist/node_modules/parseurl/README.md +133 -0
  311. package/dist/node_modules/parseurl/index.js +158 -0
  312. package/dist/node_modules/parseurl/package.json +40 -0
  313. package/dist/node_modules/path-to-regexp/History.md +36 -0
  314. package/dist/node_modules/path-to-regexp/LICENSE +21 -0
  315. package/dist/node_modules/path-to-regexp/Readme.md +35 -0
  316. package/dist/node_modules/path-to-regexp/index.js +129 -0
  317. package/dist/node_modules/path-to-regexp/package.json +30 -0
  318. package/dist/node_modules/proxy-addr/HISTORY.md +161 -0
  319. package/dist/node_modules/proxy-addr/LICENSE +22 -0
  320. package/dist/node_modules/proxy-addr/README.md +139 -0
  321. package/dist/node_modules/proxy-addr/index.js +327 -0
  322. package/dist/node_modules/proxy-addr/package.json +47 -0
  323. package/dist/node_modules/qs/.editorconfig +43 -0
  324. package/dist/node_modules/qs/.eslintrc +38 -0
  325. package/dist/node_modules/qs/.github/FUNDING.yml +12 -0
  326. package/dist/node_modules/qs/.nycrc +13 -0
  327. package/dist/node_modules/qs/CHANGELOG.md +546 -0
  328. package/dist/node_modules/qs/LICENSE.md +29 -0
  329. package/dist/node_modules/qs/README.md +625 -0
  330. package/dist/node_modules/qs/dist/qs.js +2054 -0
  331. package/dist/node_modules/qs/lib/formats.js +23 -0
  332. package/dist/node_modules/qs/lib/index.js +11 -0
  333. package/dist/node_modules/qs/lib/parse.js +263 -0
  334. package/dist/node_modules/qs/lib/stringify.js +326 -0
  335. package/dist/node_modules/qs/lib/utils.js +252 -0
  336. package/dist/node_modules/qs/package.json +77 -0
  337. package/dist/node_modules/qs/test/parse.js +855 -0
  338. package/dist/node_modules/qs/test/stringify.js +909 -0
  339. package/dist/node_modules/qs/test/utils.js +136 -0
  340. package/dist/node_modules/range-parser/HISTORY.md +56 -0
  341. package/dist/node_modules/range-parser/LICENSE +23 -0
  342. package/dist/node_modules/range-parser/README.md +84 -0
  343. package/dist/node_modules/range-parser/index.js +162 -0
  344. package/dist/node_modules/range-parser/package.json +44 -0
  345. package/dist/node_modules/raw-body/HISTORY.md +303 -0
  346. package/dist/node_modules/raw-body/LICENSE +22 -0
  347. package/dist/node_modules/raw-body/README.md +223 -0
  348. package/dist/node_modules/raw-body/SECURITY.md +24 -0
  349. package/dist/node_modules/raw-body/index.d.ts +87 -0
  350. package/dist/node_modules/raw-body/index.js +329 -0
  351. package/dist/node_modules/raw-body/package.json +49 -0
  352. package/dist/node_modules/safe-buffer/LICENSE +21 -0
  353. package/dist/node_modules/safe-buffer/README.md +584 -0
  354. package/dist/node_modules/safe-buffer/index.d.ts +187 -0
  355. package/dist/node_modules/safe-buffer/index.js +65 -0
  356. package/dist/node_modules/safe-buffer/package.json +51 -0
  357. package/dist/node_modules/safer-buffer/LICENSE +21 -0
  358. package/dist/node_modules/safer-buffer/Porting-Buffer.md +268 -0
  359. package/dist/node_modules/safer-buffer/Readme.md +156 -0
  360. package/dist/node_modules/safer-buffer/dangerous.js +58 -0
  361. package/dist/node_modules/safer-buffer/package.json +34 -0
  362. package/dist/node_modules/safer-buffer/safer.js +77 -0
  363. package/dist/node_modules/safer-buffer/tests.js +406 -0
  364. package/dist/node_modules/send/HISTORY.md +521 -0
  365. package/dist/node_modules/send/LICENSE +23 -0
  366. package/dist/node_modules/send/README.md +327 -0
  367. package/dist/node_modules/send/SECURITY.md +24 -0
  368. package/dist/node_modules/send/index.js +1143 -0
  369. package/dist/node_modules/send/node_modules/ms/index.js +162 -0
  370. package/dist/node_modules/send/node_modules/ms/license.md +21 -0
  371. package/dist/node_modules/send/node_modules/ms/package.json +38 -0
  372. package/dist/node_modules/send/node_modules/ms/readme.md +59 -0
  373. package/dist/node_modules/send/package.json +62 -0
  374. package/dist/node_modules/serve-static/HISTORY.md +471 -0
  375. package/dist/node_modules/serve-static/LICENSE +25 -0
  376. package/dist/node_modules/serve-static/README.md +257 -0
  377. package/dist/node_modules/serve-static/index.js +210 -0
  378. package/dist/node_modules/serve-static/package.json +42 -0
  379. package/dist/node_modules/setprototypeof/LICENSE +13 -0
  380. package/dist/node_modules/setprototypeof/README.md +31 -0
  381. package/dist/node_modules/setprototypeof/index.d.ts +2 -0
  382. package/dist/node_modules/setprototypeof/index.js +17 -0
  383. package/dist/node_modules/setprototypeof/package.json +38 -0
  384. package/dist/node_modules/setprototypeof/test/index.js +24 -0
  385. package/dist/node_modules/side-channel/.eslintignore +1 -0
  386. package/dist/node_modules/side-channel/.eslintrc +11 -0
  387. package/dist/node_modules/side-channel/.github/FUNDING.yml +12 -0
  388. package/dist/node_modules/side-channel/.nycrc +13 -0
  389. package/dist/node_modules/side-channel/CHANGELOG.md +65 -0
  390. package/dist/node_modules/side-channel/LICENSE +21 -0
  391. package/dist/node_modules/side-channel/README.md +2 -0
  392. package/dist/node_modules/side-channel/index.js +124 -0
  393. package/dist/node_modules/side-channel/package.json +67 -0
  394. package/dist/node_modules/side-channel/test/index.js +78 -0
  395. package/dist/node_modules/statuses/HISTORY.md +82 -0
  396. package/dist/node_modules/statuses/LICENSE +23 -0
  397. package/dist/node_modules/statuses/README.md +136 -0
  398. package/dist/node_modules/statuses/codes.json +65 -0
  399. package/dist/node_modules/statuses/index.js +146 -0
  400. package/dist/node_modules/statuses/package.json +49 -0
  401. package/dist/node_modules/toidentifier/HISTORY.md +9 -0
  402. package/dist/node_modules/toidentifier/LICENSE +21 -0
  403. package/dist/node_modules/toidentifier/README.md +61 -0
  404. package/dist/node_modules/toidentifier/index.js +32 -0
  405. package/dist/node_modules/toidentifier/package.json +38 -0
  406. package/dist/node_modules/type-is/HISTORY.md +259 -0
  407. package/dist/node_modules/type-is/LICENSE +23 -0
  408. package/dist/node_modules/type-is/README.md +170 -0
  409. package/dist/node_modules/type-is/index.js +266 -0
  410. package/dist/node_modules/type-is/package.json +45 -0
  411. package/dist/node_modules/unpipe/HISTORY.md +4 -0
  412. package/dist/node_modules/unpipe/LICENSE +22 -0
  413. package/dist/node_modules/unpipe/README.md +43 -0
  414. package/dist/node_modules/unpipe/index.js +69 -0
  415. package/dist/node_modules/unpipe/package.json +27 -0
  416. package/dist/node_modules/utils-merge/LICENSE +20 -0
  417. package/dist/node_modules/utils-merge/README.md +34 -0
  418. package/dist/node_modules/utils-merge/index.js +23 -0
  419. package/dist/node_modules/utils-merge/package.json +40 -0
  420. package/dist/node_modules/vary/HISTORY.md +39 -0
  421. package/dist/node_modules/vary/LICENSE +22 -0
  422. package/dist/node_modules/vary/README.md +101 -0
  423. package/dist/node_modules/vary/index.js +149 -0
  424. package/dist/node_modules/vary/package.json +43 -0
  425. package/dist/package-lock.json +1018 -0
  426. package/dist/package.json +18 -0
  427. package/makefile +74 -0
  428. package/package.json +1 -1
  429. package/src/peer-connection/audioPeer.js +1 -1
  430. package/src/peer-connection/speaker.js +8 -4
  431. package/src/server/PythonServerAPI.js +5 -2
  432. package/src/tasks/audioCalibrator.js +4 -3
  433. package/src/tasks/volume/volume.js +35 -36
  434. package/.gitignore +0 -78
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "easy-eyes-listener",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "example/server.js",
6
+ "directories": {
7
+ "example": "example"
8
+ },
9
+ "scripts": {
10
+ "test": "echo \"Error: no test specified\" && exit 1"
11
+ },
12
+ "keywords": [],
13
+ "author": "",
14
+ "license": "ISC",
15
+ "dependencies": {
16
+ "express": "^4.18.2"
17
+ }
18
+ }
package/makefile ADDED
@@ -0,0 +1,74 @@
1
+ ##################################### UTILITIES ######################################
2
+ COM_COLOR = \033[0;34m
3
+ OBJ_COLOR = \033[0;36m
4
+ OK_COLOR = \033[0;32m
5
+ ERROR_COLOR = \033[0;31m
6
+ WARN_COLOR = \033[0;33m
7
+ NO_COLOR = \033[m
8
+
9
+ OK_STRING = "[OK]"
10
+ ERROR_STRING = "[ERROR]"
11
+ WARN_STRING = "[WARNING]"
12
+ COM_STRING = "Compiling..."
13
+
14
+ define run_and_test
15
+ printf "%b" "$(COM_COLOR)$(COM_STRING) $(OBJ_COLOR)$(@F)$(NO_COLOR)\r"; \
16
+ $(1) 2> $@.log; \
17
+ RESULT=$$?; \
18
+ if [ $$RESULT -ne 0 ]; then \
19
+ printf "%-60b%b" "$(COM_COLOR)$(COM_STRING)$(OBJ_COLOR) $@" "$(ERROR_COLOR)$(ERROR_STRING)$(NO_COLOR)\n" ; \
20
+ elif [ -s $@.log ]; then \
21
+ printf "%-60b%b" "$(COM_COLOR)$(COM_STRING)$(OBJ_COLOR) $@" "$(WARN_COLOR)$(WARN_STRING)$(NO_COLOR)\n" ; \
22
+ else \
23
+ printf "%-60b%b" "$(COM_COLOR)$(COM_STRING)$(OBJ_COLOR) $(@F)" "$(OK_COLOR)$(OK_STRING)$(NO_COLOR)\n" ; \
24
+ fi; \
25
+ cat $@.log; \
26
+ rm -f $@.log; \
27
+ exit $$RESULT
28
+ endef
29
+
30
+ ##################################### WASM ########################################
31
+ PROJECT_NAME = mlsGen
32
+
33
+ # directories
34
+ DIST_DIR = ./dist/
35
+ SRC_DIR = $(addprefix ./src/tasks/impulse-response/,$(PROJECT_NAME)/)
36
+
37
+ # WASM files
38
+ SRC_FILE := $(addprefix $(SRC_DIR),$(PROJECT_NAME).cpp) # SRC_DIR + PROJECT_NAME + .cpp
39
+ OBJ_FILE := $(addprefix $(SRC_DIR),$(PROJECT_NAME).o)
40
+ OUTPUT_WASM_JS := $(addprefix $(DIST_DIR),$(PROJECT_NAME).js) # DIST_DIR + PROJECT_NAME + .js
41
+ OUTPUT_WASM := $(addprefix $(DIST_DIR),$(PROJECT_NAME).wasm) # DIST_DIR + PROJECT_NAME + .wasm
42
+ OUTPUT := $(addprefix $(DIST_DIR),$(PROJECT_NAME).*) # DIST_DIR + PROJECT_NAME + .*
43
+
44
+ # emcc compiler options
45
+ EMCC = em++ # emcc compiler front end
46
+ STD = --std=c++17 # C++ standard
47
+ OPTIMIZE = -O3 # Optimization level O0 ~ 28.8 kB, O1 ~ 20.3 kB, O2 ~ 20.3 kB, O3 ~ 19.7 kB
48
+ ENV = -s ENVIRONMENT='web' # environment
49
+ NOENTRY = --no-entry # no entry point (no main function)
50
+ MODULARIZE = -s MODULARIZE=1 -s 'EXPORT_NAME="createMLSGenModule"' # puts all of the generated JavaScript into a factory function
51
+ BIND = -lembind # links against embind library
52
+ MEMORY_CHECKS = -s ASSERTIONS=1 -fsanitize=address -g2
53
+
54
+ # gcc compiler options
55
+ GCC = gcc # gcc compiler front end
56
+
57
+ # KISSFFT Library
58
+ KISS_LIB= /Users/hugo/Desktop/dev/easyeyes/speaker-calibration/src/tasks/impulse-response/kissfft/libkissfft-float.a
59
+ KISS_H= -I /Users/hugo/Desktop/dev/easyeyes/speaker-calibration/src/tasks/impulse-response/kissfft/
60
+
61
+ # build the WASM + JS glue module, linked with embind
62
+ $(PROJECT_NAME)_bind: # $(OBJ_FILE)
63
+ @mkdir -p $(@D)
64
+ @$(call run_and_test, $(EMCC) $(STD) $(BIND) $(SRC_FILE) -o $(OUTPUT_WASM_JS) $(MODULARIZE) $(OPTIMIZE) $(ENV) $(MEMORY_CHECKS) $(KISS_H) $(KISS_LIB))
65
+
66
+ # clean the WASM + JS files
67
+ .PHONY: clean
68
+ clean:
69
+ @mkdir -p $(@D)
70
+ @$(call run_and_test, rm -f $(OUTPUT))
71
+
72
+ .PHONY: rebuild
73
+ rebuild:
74
+ @make clean; make $(PROJECT_NAME)_bind
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "speaker-calibration",
3
- "version": "2.1.3",
3
+ "version": "2.1.5",
4
4
  "description": "Speaker calibration library for auditory testing",
5
5
  "main": "dist/main.js",
6
6
  "directories": {
@@ -44,7 +44,7 @@ class AudioPeer {
44
44
  this.targetElement = param.targetElementId;
45
45
 
46
46
  this.siteUrl = param.siteUrl;
47
-
47
+ this.debug = false;
48
48
  // Store for all incoming data
49
49
  this.dataStore = [];
50
50
 
@@ -23,10 +23,10 @@ class Speaker extends AudioPeer {
23
23
  */
24
24
  constructor(params, CalibratorInstance) {
25
25
  super(params);
26
-
27
26
  this.siteUrl += '/listener?';
28
27
  this.ac = CalibratorInstance;
29
28
  this.result = null;
29
+ this.debug = params?.debug ?? false;
30
30
 
31
31
  /* Set up callbacks that handle any events related to our peer object. */
32
32
  this.peer.on('open', this.#onPeerOpen);
@@ -71,7 +71,11 @@ class Speaker extends AudioPeer {
71
71
  await sleep(1);
72
72
  }
73
73
  // resolve when we have a result
74
- speaker.result = await speaker.ac.startCalibration(stream, params.gainValues);
74
+ speaker.result = await speaker.ac.startCalibration(
75
+ stream,
76
+ params.gainValues,
77
+ params.ICalib
78
+ );
75
79
  speaker.#removeUIElems();
76
80
  resolve(speaker.result);
77
81
  });
@@ -158,10 +162,10 @@ class Speaker extends AudioPeer {
158
162
  // If specified HTML Id is available, show QR code there
159
163
  if (document.getElementById(this.targetElement)) {
160
164
  if (document.getElementById(this.targetElement)) {
161
- if (process.env.NODE_ENV === 'development') {
165
+ if (this.debug) {
162
166
  const linkTag = document.createElement('a');
163
167
  linkTag.setAttribute('href', uri);
164
- linkTag.innerHTML = "Click here to connect to the speaker's microphone";
168
+ linkTag.innerHTML = "Use computer's microphone to calibrate?";
165
169
  linkTag.target = '_blank';
166
170
  document.getElementById(this.targetElement).appendChild(linkTag);
167
171
  }
@@ -82,7 +82,7 @@ class PythonServerAPI {
82
82
  return res.data[task];
83
83
  };
84
84
 
85
- getVolumeCalibration = async ({payload, sampleRate}) => {
85
+ getVolumeCalibration = async ({payload, sampleRate, lCalib}) => {
86
86
  const task = 'volume';
87
87
  let res = null;
88
88
 
@@ -92,6 +92,7 @@ class PythonServerAPI {
92
92
  task,
93
93
  payload,
94
94
  'sample-rate': sampleRate,
95
+ lCalib,
95
96
  });
96
97
 
97
98
  await axios({
@@ -113,7 +114,7 @@ class PythonServerAPI {
113
114
  return res.data[task];
114
115
  };
115
116
 
116
- getVolumeCalibrationParameters = async ({inDBValues, outDBSPLValues}) => {
117
+ getVolumeCalibrationParameters = async ({inDBValues, outDBSPLValues, lCalib}) => {
117
118
  const task = 'volume-parameters';
118
119
  let res = null;
119
120
 
@@ -121,6 +122,7 @@ class PythonServerAPI {
121
122
  task,
122
123
  inDBValues,
123
124
  outDBSPLValues,
125
+ lCalib,
124
126
  });
125
127
 
126
128
  await axios({
@@ -143,6 +145,7 @@ class PythonServerAPI {
143
145
  //below is an example of res.data[task]
144
146
  //{
145
147
  // R: 16.56981076554259,
148
+ // RMSError: 1.9289162528535229
146
149
  // T: -47.79799120884434,
147
150
  // W: 61.0485247483732,
148
151
  // backgroundDBSPL: 43.88233142069752,
@@ -128,7 +128,8 @@ class AudioCalibrator extends AudioRecorder {
128
128
  playCalibrationAudio,
129
129
  beforeRecord = () => {},
130
130
  afterRecord = () => {},
131
- gainValue
131
+ gainValue,
132
+ lCalib = 104.92978421490648
132
133
  ) => {
133
134
  this.numCalibratingRoundsCompleted = 0;
134
135
 
@@ -149,7 +150,7 @@ class AudioCalibrator extends AudioRecorder {
149
150
  await this.stopRecording();
150
151
 
151
152
  // after recording
152
- await afterRecord();
153
+ await afterRecord(lCalib);
153
154
 
154
155
  this.calibrationNodes = [];
155
156
 
@@ -180,7 +181,7 @@ class AudioCalibrator extends AudioRecorder {
180
181
  setSamplingRates = samplingRate => {
181
182
  this.sinkSamplingRate = samplingRate;
182
183
  this.sourceSamplingRate = samplingRate;
183
- this.emit('update', {message: `sampling at ${samplingRate}Hz...`});
184
+ // this.emit('update', {message: `sampling at ${samplingRate}Hz...`});
184
185
  };
185
186
 
186
187
  sampleRatesSet = () => this.sourceSamplingRate && this.sinkSamplingRate;
@@ -25,14 +25,9 @@ class Volume extends AudioCalibrator {
25
25
  #CALIBRATION_TONE_DURATION = 5; // seconds
26
26
 
27
27
  /** @private */
28
- soundGainDBSPL = null;
29
28
  outDBSPL = null;
30
- power = null;
31
- power1000 = null;
32
- RMS = null;
33
29
  THD = null;
34
30
  outDBSPL1000 = null;
35
- soundGainDBSPL1000 = null;
36
31
 
37
32
  handleIncomingData = data => {
38
33
  console.log('Received data: ', data);
@@ -120,23 +115,19 @@ class Volume extends AudioCalibrator {
120
115
  await sleep(totalDuration);
121
116
  };
122
117
 
123
- #sendToServerForProcessing = () => {
118
+ #sendToServerForProcessing = (lCalib = 104.92978421490648) => {
124
119
  console.log('Sending data to server');
125
120
  this.pyServerAPI
126
121
  .getVolumeCalibration({
127
122
  sampleRate: this.sourceSamplingRate,
128
123
  payload: this.#getTruncatedSignal(),
124
+ lCalib: lCalib,
129
125
  })
130
126
  .then(res => {
131
127
  if (this.outDBSPL === null) {
132
128
  this.outDBSPL = res['outDbSPL'];
133
- this.soundGainDBSPL = res['soundGainDbSPL'];
134
129
  this.outDBSPL1000 = res['outDbSPL1000'];
135
- this.power = res['power']
136
- this.power1000 = res['power1000']
137
- this.THD = res['thd']
138
- this.RMS = res['rms']
139
- this.soundGainDBSPL1000 = res['soundGainDbSPL1000'];
130
+ this.THD = res['thd'];
140
131
  }
141
132
  })
142
133
  .catch(err => {
@@ -144,25 +135,43 @@ class Volume extends AudioCalibrator {
144
135
  });
145
136
  };
146
137
 
147
- startCalibration = async (stream, gainValues) => {
138
+ startCalibration = async (stream, gainValues, lCalib = 104.92978421490648) => {
148
139
  const trialIterations = gainValues.length;
149
- const soundGainDBSPLValues = [];
150
- const soundGainDBSPL1000Values = [];
151
- const power1000Values = [];
152
- const powerValues = [];
153
- const rmsValues = [];
154
140
  const thdValues = [];
155
141
  const inDBValues = [];
156
142
  let inDB = 0;
157
143
  const outDBSPLValues = [];
158
144
  const outDBSPL1000Values = [];
159
145
 
146
+ // do one calibration that will be discarded
147
+ const soundLevelToDiscard = -80;
148
+ const gainToDiscard = Math.pow(10, soundLevelToDiscard / 20);
149
+ this.emit('update', {message: `Sound Level: ${soundLevelToDiscard} dB`});
150
+ do {
151
+ // eslint-disable-next-line no-await-in-loop
152
+ await this.volumeCalibrationSteps(
153
+ stream,
154
+ this.#playCalibrationAudio,
155
+ this.#createCalibrationNode,
156
+ this.#sendToServerForProcessing,
157
+ gainToDiscard,
158
+ lCalib //todo make this a class parameter
159
+ );
160
+ } while (this.outDBSPL === null);
161
+ //reset the values
162
+ this.outDBSPL = null;
163
+ this.outDBSPL = null;
164
+ this.outDBSPL1000 = null;
165
+ this.THD = null;
166
+
160
167
  // run the calibration at different gain values provided by the user
161
168
  for (let i = 0; i < trialIterations; i++) {
162
169
  //convert gain to DB and add to inDB
163
170
  inDB = Math.log10(gainValues[i]) * 20;
171
+ // precision to 1 decimal place
172
+ inDB = Math.round(inDB * 10) / 10;
164
173
  inDBValues.push(inDB);
165
-
174
+ this.emit('update', {message: `Sound Level: ${inDB} dB`});
166
175
  do {
167
176
  // eslint-disable-next-line no-await-in-loop
168
177
  await this.volumeCalibrationSteps(
@@ -170,31 +179,26 @@ class Volume extends AudioCalibrator {
170
179
  this.#playCalibrationAudio,
171
180
  this.#createCalibrationToneWithGainValue,
172
181
  this.#sendToServerForProcessing,
173
- gainValues[i]
182
+ gainValues[i],
183
+ lCalib //todo make this a class parameter
174
184
  );
175
185
  } while (this.outDBSPL === null);
176
186
  outDBSPL1000Values.push(this.outDBSPL1000);
177
- power1000Values.push(this.power1000);
178
- powerValues.push(this.power);
179
- rmsValues.push(this.RMS);
180
187
  thdValues.push(this.THD);
181
188
  outDBSPLValues.push(this.outDBSPL);
182
- soundGainDBSPLValues.push(this.soundGainDBSPL);
183
- soundGainDBSPL1000Values.push(this.soundGainDBSPL1000);
184
189
 
185
190
  this.outDBSPL = null;
186
- this.soundGainDBSPL = null;
187
- this.power1000 = null;
188
- this.power = null;
189
191
  this.outDBSPL1000 = null;
190
- this.RMS = null;
191
192
  this.THD = null;
192
- this.soundGainDBSPL1000=null;
193
193
  }
194
194
 
195
195
  // get the volume calibration parameters from the server
196
196
  const parameters = await this.pyServerAPI
197
- .getVolumeCalibrationParameters({inDBValues: inDBValues, outDBSPLValues: outDBSPL1000Values})
197
+ .getVolumeCalibrationParameters({
198
+ inDBValues: inDBValues,
199
+ outDBSPLValues: outDBSPL1000Values,
200
+ lCalib: lCalib,
201
+ })
198
202
  .then(res => {
199
203
  return res;
200
204
  });
@@ -202,13 +206,8 @@ class Volume extends AudioCalibrator {
202
206
  parameters: parameters,
203
207
  inDBValues: inDBValues,
204
208
  outDBSPLValues: outDBSPLValues,
205
- soundGainDBSPLValues: soundGainDBSPLValues,
206
- powerValues: powerValues,
207
- power1000Values: power1000Values,
208
209
  outDBSPL1000Values: outDBSPL1000Values,
209
- rmsValues: rmsValues,
210
210
  thdValues: thdValues,
211
- soundGainDBSPL1000Values: soundGainDBSPL1000Values
212
211
  };
213
212
 
214
213
  return result;
package/.gitignore DELETED
@@ -1,78 +0,0 @@
1
- # Ignore files without extentions
2
- *
3
- !/**/
4
- !*.*
5
-
6
- # ignore all files starting with . or ~
7
- .*
8
- ~*
9
-
10
- # ignore node/grunt dependency directories
11
- node_modules/
12
-
13
- # ignore composer vendor directory
14
- /vendor
15
-
16
- # ignore components loaded via Bower
17
- /bower_components
18
-
19
- # ignore jekyll build directory
20
- /_site
21
-
22
- # ignore OS generated files
23
- ehthumbs.db
24
- Thumbs.db
25
-
26
- # ignore Editor files
27
- *.sublime-project
28
- *.sublime-workspace
29
- *.komodoproject
30
-
31
- # ignore log files and databases
32
- *.log
33
- *.sql
34
- *.sqlite
35
-
36
- # ignore compiled files
37
- *.com
38
- *.class
39
- *.dll
40
- *.exe
41
- *.o
42
- *.so
43
-
44
- # ignore packaged files
45
- *.7z
46
- *.dmg
47
- *.gz
48
- *.iso
49
- *.jar
50
- *.rar
51
- *.tar
52
- *.zip
53
-
54
- # ignore private/secret files
55
- *.der
56
- *.key
57
- *.pem
58
-
59
- # ingnore CSV files
60
- *.csv
61
-
62
- # ignore library files
63
- kfr-master
64
- kissfft
65
-
66
- # --------------------------------------------------------
67
- # BEGIN Explictly Allowed Files (i.e. do NOT ignore these)
68
- # --------------------------------------------------------
69
-
70
- # track these files, if they exist
71
- !.gitignore
72
- !.editorconfig
73
- !.phpcs.xml.dist
74
- !.env.example
75
- !.eslintrc.json
76
- !.prettierrc
77
- !.eslintignore
78
- !.prettierignore