diff --git a/doc/小米便签泛读报告.docx b/doc/小米便签泛读报告.docx index 0df6e01..b3e43c2 100644 Binary files a/doc/小米便签泛读报告.docx and b/doc/小米便签泛读报告.docx differ diff --git a/src/Notes-master/.gitignore b/src/Notes-master/.gitignore deleted file mode 100644 index 7df8dff..0000000 --- a/src/Notes-master/.gitignore +++ /dev/null @@ -1,9 +0,0 @@ -# generated files -bin/ -gen/ - -# Local configuration file (sdk path, etc) -project.properties -.settings/ -.classpath -.project diff --git a/src/Notes-master/NOTICE b/src/Notes-master/NOTICE deleted file mode 100644 index 9a54521..0000000 --- a/src/Notes-master/NOTICE +++ /dev/null @@ -1,190 +0,0 @@ - - Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - diff --git a/src/Notes-master/README b/src/Notes-master/README deleted file mode 100644 index fc0d824..0000000 --- a/src/Notes-master/README +++ /dev/null @@ -1,23 +0,0 @@ -[中文] - -1. MiCode便签是小米便签的社区开源版,由MIUI团队(www.miui.com) 发起并贡献第一批代码,遵循NOTICE文件所描述的开源协议, - 今后为MiCode社区(www.micode.net) 拥有,并由社区发布和维护。 - -2. Bug反馈和跟踪,请访问Github, - https://github.com/MiCode/Notes/issues?sort=created&direction=desc&state=open - -3. 功能建议和综合讨论,请访问MiCode, - http://micode.net/forum.php?mod=forumdisplay&fid=38 - - -[English] - -1. MiCode Notes is open source edition of XM notepad, it's first initiated and sponsored by MIUI team (www.miui.com). - It's opened under license described by NOTICE file. It's owned by the MiCode community (www.micode.net). In future, - the MiCode community will release and maintain this project. - -2. Regarding issue tracking, please visit Github, - https://github.com/MiCode/Notes/issues?sort=created&direction=desc&state=open - -3. Regarding feature request and general discussion, please visit Micode forum, - http://micode.net/forum.php?mod=forumdisplay&fid=38 diff --git a/src/Notes-master/assets/vosk-model-small-cn-0.22/README b/src/Notes-master/assets/vosk-model-small-cn-0.22/README new file mode 100644 index 0000000..0b5d9e5 --- /dev/null +++ b/src/Notes-master/assets/vosk-model-small-cn-0.22/README @@ -0,0 +1,6 @@ +Chinese Vosk model for mobile + +CER results + +23.54% speechio_02 +38.29% speechio_06 diff --git a/src/Notes-master/assets/vosk-model-small-cn-0.22/am/final.mdl b/src/Notes-master/assets/vosk-model-small-cn-0.22/am/final.mdl new file mode 100644 index 0000000..f7cf1de Binary files /dev/null and b/src/Notes-master/assets/vosk-model-small-cn-0.22/am/final.mdl differ diff --git a/src/Notes-master/assets/vosk-model-small-cn-0.22/conf/mfcc.conf b/src/Notes-master/assets/vosk-model-small-cn-0.22/conf/mfcc.conf new file mode 100644 index 0000000..12fdad4 --- /dev/null +++ b/src/Notes-master/assets/vosk-model-small-cn-0.22/conf/mfcc.conf @@ -0,0 +1,8 @@ +--use-energy=false +--sample-frequency=16000 +--num-mel-bins=40 +--num-ceps=40 +--low-freq=40 +--high-freq=-200 +--allow-upsample=true +--allow-downsample=true diff --git a/src/Notes-master/assets/vosk-model-small-cn-0.22/conf/model.conf b/src/Notes-master/assets/vosk-model-small-cn-0.22/conf/model.conf new file mode 100644 index 0000000..9ae12a7 --- /dev/null +++ b/src/Notes-master/assets/vosk-model-small-cn-0.22/conf/model.conf @@ -0,0 +1,10 @@ +--min-active=200 +--max-active=5000 +--beam=12.0 +--lattice-beam=4.0 +--acoustic-scale=1.0 +--frame-subsampling-factor=3 +--endpoint.silence-phones=1:2:3:4:5:6:7:8:9:10 +--endpoint.rule2.min-trailing-silence=0.5 +--endpoint.rule3.min-trailing-silence=1.0 +--endpoint.rule4.min-trailing-silence=2.0 diff --git a/src/Notes-master/assets/vosk-model-small-cn-0.22/graph/Gr.fst b/src/Notes-master/assets/vosk-model-small-cn-0.22/graph/Gr.fst new file mode 100644 index 0000000..ee4580d Binary files /dev/null and b/src/Notes-master/assets/vosk-model-small-cn-0.22/graph/Gr.fst differ diff --git a/src/Notes-master/assets/vosk-model-small-cn-0.22/graph/HCLr.fst b/src/Notes-master/assets/vosk-model-small-cn-0.22/graph/HCLr.fst new file mode 100644 index 0000000..2ad6e8f Binary files /dev/null and b/src/Notes-master/assets/vosk-model-small-cn-0.22/graph/HCLr.fst differ diff --git a/src/Notes-master/assets/vosk-model-small-cn-0.22/graph/disambig_tid.int b/src/Notes-master/assets/vosk-model-small-cn-0.22/graph/disambig_tid.int new file mode 100644 index 0000000..c1a114f --- /dev/null +++ b/src/Notes-master/assets/vosk-model-small-cn-0.22/graph/disambig_tid.int @@ -0,0 +1,39 @@ +11845 +11846 +11847 +11848 +11849 +11850 +11851 +11852 +11853 +11854 +11855 +11856 +11857 +11858 +11859 +11860 +11861 +11862 +11863 +11864 +11865 +11866 +11867 +11868 +11869 +11870 +11871 +11872 +11873 +11874 +11875 +11876 +11877 +11878 +11879 +11880 +11881 +11882 +11883 diff --git a/src/Notes-master/assets/vosk-model-small-cn-0.22/graph/phones/word_boundary.int b/src/Notes-master/assets/vosk-model-small-cn-0.22/graph/phones/word_boundary.int new file mode 100644 index 0000000..9f3713e --- /dev/null +++ b/src/Notes-master/assets/vosk-model-small-cn-0.22/graph/phones/word_boundary.int @@ -0,0 +1,646 @@ +1 nonword +2 begin +3 end +4 internal +5 singleton +6 nonword +7 begin +8 end +9 internal +10 singleton +11 begin +12 end +13 internal +14 singleton +15 begin +16 end +17 internal +18 singleton +19 begin +20 end +21 internal +22 singleton +23 begin +24 end +25 internal +26 singleton +27 begin +28 end +29 internal +30 singleton +31 begin +32 end +33 internal +34 singleton +35 begin +36 end +37 internal +38 singleton +39 begin +40 end +41 internal +42 singleton +43 begin +44 end +45 internal +46 singleton +47 begin +48 end +49 internal +50 singleton +51 begin +52 end +53 internal +54 singleton +55 begin +56 end +57 internal +58 singleton +59 begin +60 end +61 internal +62 singleton +63 begin +64 end +65 internal +66 singleton +67 begin +68 end +69 internal +70 singleton +71 begin +72 end +73 internal +74 singleton +75 begin +76 end +77 internal +78 singleton +79 begin +80 end +81 internal +82 singleton +83 begin +84 end +85 internal +86 singleton +87 begin +88 end +89 internal +90 singleton +91 begin +92 end +93 internal +94 singleton +95 begin +96 end +97 internal +98 singleton +99 begin +100 end +101 internal +102 singleton +103 begin +104 end +105 internal +106 singleton +107 begin +108 end +109 internal +110 singleton +111 begin +112 end +113 internal +114 singleton +115 begin +116 end +117 internal +118 singleton +119 begin +120 end +121 internal +122 singleton +123 begin +124 end +125 internal +126 singleton +127 begin +128 end +129 internal +130 singleton +131 begin +132 end +133 internal +134 singleton +135 begin +136 end +137 internal +138 singleton +139 begin +140 end +141 internal +142 singleton +143 begin +144 end +145 internal +146 singleton +147 begin +148 end +149 internal +150 singleton +151 begin +152 end +153 internal +154 singleton +155 begin +156 end +157 internal +158 singleton +159 begin +160 end +161 internal +162 singleton +163 begin +164 end +165 internal +166 singleton +167 begin +168 end +169 internal +170 singleton +171 begin +172 end +173 internal +174 singleton +175 begin +176 end +177 internal +178 singleton +179 begin +180 end +181 internal +182 singleton +183 begin +184 end +185 internal +186 singleton +187 begin +188 end +189 internal +190 singleton +191 begin +192 end +193 internal +194 singleton +195 begin +196 end +197 internal +198 singleton +199 begin +200 end +201 internal +202 singleton +203 begin +204 end +205 internal +206 singleton +207 begin +208 end +209 internal +210 singleton +211 begin +212 end +213 internal +214 singleton +215 begin +216 end +217 internal +218 singleton +219 begin +220 end +221 internal +222 singleton +223 begin +224 end +225 internal +226 singleton +227 begin +228 end +229 internal +230 singleton +231 begin +232 end +233 internal +234 singleton +235 begin +236 end +237 internal +238 singleton +239 begin +240 end +241 internal +242 singleton +243 begin +244 end +245 internal +246 singleton +247 begin +248 end +249 internal +250 singleton +251 begin +252 end +253 internal +254 singleton +255 begin +256 end +257 internal +258 singleton +259 begin +260 end +261 internal +262 singleton +263 begin +264 end +265 internal +266 singleton +267 begin +268 end +269 internal +270 singleton +271 begin +272 end +273 internal +274 singleton +275 begin +276 end +277 internal +278 singleton +279 begin +280 end +281 internal +282 singleton +283 begin +284 end +285 internal +286 singleton +287 begin +288 end +289 internal +290 singleton +291 begin +292 end +293 internal +294 singleton +295 begin +296 end +297 internal +298 singleton +299 begin +300 end +301 internal +302 singleton +303 begin +304 end +305 internal +306 singleton +307 begin +308 end +309 internal +310 singleton +311 begin +312 end +313 internal +314 singleton +315 begin +316 end +317 internal +318 singleton +319 begin +320 end +321 internal +322 singleton +323 begin +324 end +325 internal +326 singleton +327 begin +328 end +329 internal +330 singleton +331 begin +332 end +333 internal +334 singleton +335 begin +336 end +337 internal +338 singleton +339 begin +340 end +341 internal +342 singleton +343 begin +344 end +345 internal +346 singleton +347 begin +348 end +349 internal +350 singleton +351 begin +352 end +353 internal +354 singleton +355 begin +356 end +357 internal +358 singleton +359 begin +360 end +361 internal +362 singleton +363 begin +364 end +365 internal +366 singleton +367 begin +368 end +369 internal +370 singleton +371 begin +372 end +373 internal +374 singleton +375 begin +376 end +377 internal +378 singleton +379 begin +380 end +381 internal +382 singleton +383 begin +384 end +385 internal +386 singleton +387 begin +388 end +389 internal +390 singleton +391 begin +392 end +393 internal +394 singleton +395 begin +396 end +397 internal +398 singleton +399 begin +400 end +401 internal +402 singleton +403 begin +404 end +405 internal +406 singleton +407 begin +408 end +409 internal +410 singleton +411 begin +412 end +413 internal +414 singleton +415 begin +416 end +417 internal +418 singleton +419 begin +420 end +421 internal +422 singleton +423 begin +424 end +425 internal +426 singleton +427 begin +428 end +429 internal +430 singleton +431 begin +432 end +433 internal +434 singleton +435 begin +436 end +437 internal +438 singleton +439 begin +440 end +441 internal +442 singleton +443 begin +444 end +445 internal +446 singleton +447 begin +448 end +449 internal +450 singleton +451 begin +452 end +453 internal +454 singleton +455 begin +456 end +457 internal +458 singleton +459 begin +460 end +461 internal +462 singleton +463 begin +464 end +465 internal +466 singleton +467 begin +468 end +469 internal +470 singleton +471 begin +472 end +473 internal +474 singleton +475 begin +476 end +477 internal +478 singleton +479 begin +480 end +481 internal +482 singleton +483 begin +484 end +485 internal +486 singleton +487 begin +488 end +489 internal +490 singleton +491 begin +492 end +493 internal +494 singleton +495 begin +496 end +497 internal +498 singleton +499 begin +500 end +501 internal +502 singleton +503 begin +504 end +505 internal +506 singleton +507 begin +508 end +509 internal +510 singleton +511 begin +512 end +513 internal +514 singleton +515 begin +516 end +517 internal +518 singleton +519 begin +520 end +521 internal +522 singleton +523 begin +524 end +525 internal +526 singleton +527 begin +528 end +529 internal +530 singleton +531 begin +532 end +533 internal +534 singleton +535 begin +536 end +537 internal +538 singleton +539 begin +540 end +541 internal +542 singleton +543 begin +544 end +545 internal +546 singleton +547 begin +548 end +549 internal +550 singleton +551 begin +552 end +553 internal +554 singleton +555 begin +556 end +557 internal +558 singleton +559 begin +560 end +561 internal +562 singleton +563 begin +564 end +565 internal +566 singleton +567 begin +568 end +569 internal +570 singleton +571 begin +572 end +573 internal +574 singleton +575 begin +576 end +577 internal +578 singleton +579 begin +580 end +581 internal +582 singleton +583 begin +584 end +585 internal +586 singleton +587 begin +588 end +589 internal +590 singleton +591 begin +592 end +593 internal +594 singleton +595 begin +596 end +597 internal +598 singleton +599 begin +600 end +601 internal +602 singleton +603 begin +604 end +605 internal +606 singleton +607 begin +608 end +609 internal +610 singleton +611 begin +612 end +613 internal +614 singleton +615 begin +616 end +617 internal +618 singleton +619 begin +620 end +621 internal +622 singleton +623 begin +624 end +625 internal +626 singleton +627 begin +628 end +629 internal +630 singleton +631 begin +632 end +633 internal +634 singleton +635 begin +636 end +637 internal +638 singleton +639 begin +640 end +641 internal +642 singleton +643 begin +644 end +645 internal +646 singleton diff --git a/src/Notes-master/assets/vosk-model-small-cn-0.22/ivector/final.dubm b/src/Notes-master/assets/vosk-model-small-cn-0.22/ivector/final.dubm new file mode 100644 index 0000000..bcf2689 Binary files /dev/null and b/src/Notes-master/assets/vosk-model-small-cn-0.22/ivector/final.dubm differ diff --git a/src/Notes-master/assets/vosk-model-small-cn-0.22/ivector/final.ie b/src/Notes-master/assets/vosk-model-small-cn-0.22/ivector/final.ie new file mode 100644 index 0000000..e1d78a2 Binary files /dev/null and b/src/Notes-master/assets/vosk-model-small-cn-0.22/ivector/final.ie differ diff --git a/src/Notes-master/assets/vosk-model-small-cn-0.22/ivector/final.mat b/src/Notes-master/assets/vosk-model-small-cn-0.22/ivector/final.mat new file mode 100644 index 0000000..1093236 Binary files /dev/null and b/src/Notes-master/assets/vosk-model-small-cn-0.22/ivector/final.mat differ diff --git a/src/Notes-master/assets/vosk-model-small-cn-0.22/ivector/global_cmvn.stats b/src/Notes-master/assets/vosk-model-small-cn-0.22/ivector/global_cmvn.stats new file mode 100644 index 0000000..500cc40 --- /dev/null +++ b/src/Notes-master/assets/vosk-model-small-cn-0.22/ivector/global_cmvn.stats @@ -0,0 +1,3 @@ + [ + 1.117107e+11 -7.827721e+08 -1.101398e+10 -2.193934e+09 -1.347332e+10 -1.613916e+10 -1.199561e+10 -1.255081e+10 -1.638895e+10 -3.821099e+09 -1.372833e+10 -5.244242e+09 -1.098187e+10 -3.655235e+09 -9.364579e+09 -4.285302e+09 -6.296873e+09 -1.552953e+09 -3.176746e+09 -1.202976e+08 -9.857023e+08 2.316555e+08 -1.61059e+08 -5.891868e+07 3.465849e+08 -1.842054e+08 3.248211e+08 -1.483965e+08 3.739239e+08 -6.672061e+08 4.442288e+08 -9.274889e+08 5.142684e+08 4.292036e+07 2.206386e+08 -4.532715e+08 -2.092499e+08 -3.70488e+08 -8.079404e+07 -8.425977e+07 1.344125e+09 + 9.982632e+12 1.02635e+12 8.634624e+11 9.06451e+11 9.652096e+11 1.12772e+12 9.468372e+11 9.141218e+11 9.670484e+11 6.936961e+11 8.141006e+11 6.256321e+11 6.087707e+11 4.616898e+11 4.212042e+11 2.862872e+11 2.498089e+11 1.470856e+11 1.099197e+11 5.780894e+10 3.118114e+10 1.060667e+10 1.466199e+09 4.173056e+08 5.257362e+09 1.277714e+10 2.114478e+10 2.974502e+10 3.587691e+10 4.078971e+10 4.247745e+10 4.382608e+10 4.62521e+10 4.575282e+10 3.546206e+10 3.041531e+10 2.838562e+10 2.258604e+10 1.715295e+10 1.303227e+10 0 ] diff --git a/src/Notes-master/assets/vosk-model-small-cn-0.22/ivector/online_cmvn.conf b/src/Notes-master/assets/vosk-model-small-cn-0.22/ivector/online_cmvn.conf new file mode 100644 index 0000000..e69de29 diff --git a/src/Notes-master/assets/vosk-model-small-cn-0.22/ivector/splice.conf b/src/Notes-master/assets/vosk-model-small-cn-0.22/ivector/splice.conf new file mode 100644 index 0000000..960cd2e --- /dev/null +++ b/src/Notes-master/assets/vosk-model-small-cn-0.22/ivector/splice.conf @@ -0,0 +1,2 @@ +--left-context=3 +--right-context=3 diff --git a/src/Notes-master/gradle script/build.gradle(Module_app).kts b/src/Notes-master/gradle script/build.gradle(Module_app).kts new file mode 100644 index 0000000..06d70f4 --- /dev/null +++ b/src/Notes-master/gradle script/build.gradle(Module_app).kts @@ -0,0 +1,114 @@ +plugins { + alias(libs.plugins.android.application) + id("jacoco") // 1. 新增:应用 JaCoCo 插件(用于生成覆盖率报告) +} + +android { + packaging { + resources.excludes.add("META-INF/DEPENDENCIES"); + resources.excludes.add("META-INF/NOTICE"); + resources.excludes.add("META-INF/LICENSE"); + resources.excludes.add("META-INF/LICENSE.txt"); + resources.excludes.add("META-INF/NOTICE.txt"); + jniLibs { + // 对于 .so 文件的 pickFirst + pickFirsts.add("**/*.so") + } + } + namespace = "net.micode.notes" + compileSdk { + version = release(36) + } + + defaultConfig { + //包名,标识 + applicationId = "net.micode.notes" + minSdk = 30 + targetSdk = 36 + versionCode = 1 + versionName = "1.0" + + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" + + } + + + buildTypes { + release { + isMinifyEnabled = false + proguardFiles( + getDefaultProguardFile("proguard-android-optimize.txt"), + "proguard-rules.pro" + ) + } + debug { + enableUnitTestCoverage = true + } + } + compileOptions { + sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_11 + } + +} +// 3. 新增:配置 JaCoCo 任务,生成 XML 格式的覆盖率报告(SonarQube 需读取 XML 报告) +// 修复2:配置 JaCoCo 任务(解决 main 和 srcDirs 引用错误) +// JaCoCo覆盖率任务(无废弃API警告) +tasks.register("jacocoTestReport") { + dependsOn("testDebugUnitTest") + + reports { + xml.required = true + html.required = true + // 新路径API:覆盖率XML报告路径 + xml.outputLocation = file("${layout.buildDirectory.file("reports/jacoco/testDebugUnitTest/jacocoTestReport.xml").get().asFile.path}") + } + + val mainSourceSet = android.sourceSets.getByName("main") + sourceDirectories.setFrom( + fileTree( + mapOf( + "dir" to mainSourceSet.java.srcDirs.first(), + "exclude" to listOf("**/R.java", "**/BuildConfig.java") + ) + ) + ) + + classDirectories.setFrom( + fileTree( + mapOf( + // 新路径API:编译后的class文件路径 + "dir" to "${layout.buildDirectory.file("intermediates/javac/debug/classes").get().asFile.path}", + "exclude" to listOf("**/R.class", "**/BuildConfig.class") + ) + ) + ) + + executionData.setFrom( + // 新路径API:测试执行数据路径 + file("${layout.buildDirectory.file("jacoco/testDebugUnitTest.exec").get().asFile.path}") + ) +} +dependencies { + implementation(libs.appcompat) + implementation(libs.material) + implementation(libs.activity) + implementation(libs.constraintlayout) + //implementation(fileTree(mapOf( + // "dir" to "D:\\AndroidTools\\AndroidProject\\Notes-master\\httpcomponents-client-4.5.14-bin", + // "include" to listOf("*.aar", "*.jar"), + // "exclude" to listOf("") + //))) + implementation(files("D:\\AndroidTools\\AndroidProject\\Notes-master\\httpcomponents-client-4.5.14-bin\\lib\\httpclient-osgi-4.5.14.jar")) + implementation(files("D:\\AndroidTools\\AndroidProject\\Notes-master\\httpcomponents-client-4.5.14-bin\\lib\\httpclient-win-4.5.14.jar")) + implementation(files("D:\\AndroidTools\\AndroidProject\\Notes-master\\httpcomponents-client-4.5.14-bin\\lib\\httpcore-4.4.16.jar")) + testImplementation(libs.junit) + androidTestImplementation(libs.ext.junit) + androidTestImplementation(libs.espresso.core) + //新增依赖 + + implementation("jp.wasabeef:richeditor-android:2.0.0") + // Vosk离线语音识别依赖 + implementation("net.java.dev.jna:jna:5.13.0@aar") // Vosk需要JNA + +} \ No newline at end of file diff --git a/src/Notes-master/gradle script/build.gradle(project).kts b/src/Notes-master/gradle script/build.gradle(project).kts new file mode 100644 index 0000000..1f155e5 --- /dev/null +++ b/src/Notes-master/gradle script/build.gradle(project).kts @@ -0,0 +1,27 @@ +// 根目录build.gradle +plugins { + alias(libs.plugins.android.application) apply false + id("org.jetbrains.kotlin.android") version "1.9.0" apply false + // 注意:SonarQube插件版本需与Gradle版本兼容(建议用最新稳定版,如7.2.0.6526) + id("org.sonarqube") version "7.2.0.6526" apply false +} + +// 应用SonarQube插件并配置 +apply(plugin = "org.sonarqube") + +configure { + properties { + + + // 2. 检查原有配置是否正确(避免过期/错误) + property("sonar.projectKey", "Notes-master") // 需与SonarQube网页端项目Key一致 + property("sonar.projectName", "Notes-master") // 与网页端项目名一致 + property("sonar.host.url", "http://localhost:9000") // SonarQube服务地址(确保服务已启动) + property("sonar.sourceEncoding", "UTF-8") + // 3. 检查代码路径(若项目结构变化,需同步修改) + property("sonar.sources", "src/main/java,src/main/kotlin") // 源码路径 + property("sonar.tests", "src/test/java,src/test/kotlin") // 测试代码路径 + property("sonar.java.binaries", "build/classes") // 编译后的class文件路径(若路径变了需调整) + property("sonar.junit.reportPaths", "build/test-results/test") // 测试报告路径 + } +} \ No newline at end of file diff --git a/src/Notes-master/gradle script/gradle(Global).properties b/src/Notes-master/gradle script/gradle(Global).properties new file mode 100644 index 0000000..d2558ec --- /dev/null +++ b/src/Notes-master/gradle script/gradle(Global).properties @@ -0,0 +1,17 @@ +## For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html +# +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +# Default value: -Xmx1024m -XX:MaxPermSize=256m +# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 +# +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. For more details, visit +# https://developer.android.com/r/tools/gradle-multi-project-decoupled-projects +# org.gradle.parallel=true +#Thu Dec 11 10:32:39 CST 2025 +systemProp.http.proxyHost= +systemProp.http.proxyPort=80 +systemProp.https.proxyHost= +systemProp.https.proxyPort=80 diff --git a/src/Notes-master/gradle script/gradle(Project Properties).properties b/src/Notes-master/gradle script/gradle(Project Properties).properties new file mode 100644 index 0000000..00d252e --- /dev/null +++ b/src/Notes-master/gradle script/gradle(Project Properties).properties @@ -0,0 +1,22 @@ +# Project-wide Gradle settings. +# IDE (e.g. Android Studio) users: +# Gradle settings configured through the IDE *will override* +# any settings specified in this file. +# For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. For more details, visit +# https://developer.android.com/r/tools/gradle-multi-project-decoupled-projects +# org.gradle.parallel=true +# AndroidX package structure to make it clearer which packages are bundled with the +# Android operating system, and which are packaged with your app's APK +# https://developer.android.com/topic/libraries/support-library/androidx-rn +android.useAndroidX=true +# Enables namespacing of each library's R class so that its R class includes only the +# resources declared in the library itself and none from the library's dependencies, +# thereby reducing the size of the R class for that library +android.nonTransitiveRClass=true +android.nonFinalResIds=false \ No newline at end of file diff --git a/src/Notes-master/gradle script/gradle-wrapper.properties b/src/Notes-master/gradle script/gradle-wrapper.properties new file mode 100644 index 0000000..00fbb50 --- /dev/null +++ b/src/Notes-master/gradle script/gradle-wrapper.properties @@ -0,0 +1,8 @@ +#Fri Nov 14 08:56:46 CST 2025 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://mirrors.aliyun.com/macports/distfiles/gradle/gradle-8.13-bin.zip +networkTimeout=10000 +validateDistributionUrl=true +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/src/Notes-master/gradle script/libs.versions.toml b/src/Notes-master/gradle script/libs.versions.toml new file mode 100644 index 0000000..4a54668 --- /dev/null +++ b/src/Notes-master/gradle script/libs.versions.toml @@ -0,0 +1,22 @@ +[versions] +agp = "8.13.0" +junit = "4.13.2" +junitVersion = "1.1.5" +espressoCore = "3.5.1" +appcompat = "1.6.1" +material = "1.10.0" +activity = "1.8.0" +constraintlayout = "2.1.4" + +[libraries] +junit = { group = "junit", name = "junit", version.ref = "junit" } +ext-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" } +espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" } +appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" } +material = { group = "com.google.android.material", name = "material", version.ref = "material" } +activity = { group = "androidx.activity", name = "activity", version.ref = "activity" } +constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" } + +[plugins] +android-application = { id = "com.android.application", version.ref = "agp" } + diff --git a/src/Notes-master/gradle script/local.properties b/src/Notes-master/gradle script/local.properties new file mode 100644 index 0000000..f991d50 --- /dev/null +++ b/src/Notes-master/gradle script/local.properties @@ -0,0 +1,10 @@ +## This file is automatically generated by Android Studio. +# Do not modify this file -- YOUR CHANGES WILL BE ERASED! +# +# This file should *NOT* be checked into Version Control Systems, +# as it contains information specific to your local configuration. +# +# Location of the SDK. This is only used by Gradle. +# For customization when using a Version Control System, please read the +# header note. +sdk.dir=D\:\\AndroidTools\\AndroidSDk \ No newline at end of file diff --git a/src/Notes-master/gradle script/proguard-rules.pro b/src/Notes-master/gradle script/proguard-rules.pro new file mode 100644 index 0000000..481bb43 --- /dev/null +++ b/src/Notes-master/gradle script/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/src/Notes-master/gradle script/settings.gradle.kts b/src/Notes-master/gradle script/settings.gradle.kts new file mode 100644 index 0000000..923dead --- /dev/null +++ b/src/Notes-master/gradle script/settings.gradle.kts @@ -0,0 +1,28 @@ +pluginManagement { + repositories { + maven { url=uri( "https://maven.aliyun.com/repository/central") } + maven { url=uri( "https://maven.aliyun.com/repository/public") } + maven { url=uri( "https://maven.aliyun.com/repository/google") } + maven { url=uri( "https://maven.aliyun.com/repository/gradle-plugin") } + google { + content { + includeGroupByRegex("com\\.android.*") + includeGroupByRegex("com\\.google.*") + includeGroupByRegex("androidx.*") + } + } + mavenCentral() + gradlePluginPortal() + } +} +dependencyResolutionManagement { + repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) + repositories { + google() + mavenCentral() + maven { url = uri("https://jitpack.io") } + } +} + +rootProject.name = "Notes-master" +include(":app") diff --git a/src/Notes-master/jniLibs/arm64-v8a/libvosk.so b/src/Notes-master/jniLibs/arm64-v8a/libvosk.so new file mode 100644 index 0000000..2102db9 Binary files /dev/null and b/src/Notes-master/jniLibs/arm64-v8a/libvosk.so differ diff --git a/src/Notes-master/jniLibs/armeabi-v7a/libvosk.so b/src/Notes-master/jniLibs/armeabi-v7a/libvosk.so new file mode 100644 index 0000000..970818b Binary files /dev/null and b/src/Notes-master/jniLibs/armeabi-v7a/libvosk.so differ diff --git a/src/Notes-master/jniLibs/vosk_api.h b/src/Notes-master/jniLibs/vosk_api.h new file mode 100644 index 0000000..9816019 --- /dev/null +++ b/src/Notes-master/jniLibs/vosk_api.h @@ -0,0 +1,361 @@ +// Copyright 2020-2021 Alpha Cephei Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/* This header contains the C API for Vosk speech recognition system */ + +#ifndef VOSK_API_H +#define VOSK_API_H + +#ifdef __cplusplus +extern "C" { +#endif + +/** Model stores all the data required for recognition + * it contains static data and can be shared across processing + * threads. */ +typedef struct VoskModel VoskModel; + + +/** Speaker model is the same as model but contains the data + * for speaker identification. */ +typedef struct VoskSpkModel VoskSpkModel; + + +/** Recognizer object is the main object which processes data. + * Each recognizer usually runs in own thread and takes audio as input. + * Once audio is processed recognizer returns JSON object as a string + * which represent decoded information - words, confidences, times, n-best lists, + * speaker information and so on */ +typedef struct VoskRecognizer VoskRecognizer; + + +/** + * Batch model object + */ +typedef struct VoskBatchModel VoskBatchModel; + +/** + * Batch recognizer object + */ +typedef struct VoskBatchRecognizer VoskBatchRecognizer; + + +/** Loads model data from the file and returns the model object + * + * @param model_path: the path of the model on the filesystem + * @returns model object or NULL if problem occured */ +VoskModel *vosk_model_new(const char *model_path); + + +/** Releases the model memory + * + * The model object is reference-counted so if some recognizer + * depends on this model, model might still stay alive. When + * last recognizer is released, model will be released too. */ +void vosk_model_free(VoskModel *model); + + +/** Check if a word can be recognized by the model + * @param word: the word + * @returns the word symbol if @param word exists inside the model + * or -1 otherwise. + * Reminding that word symbol 0 is for */ +int vosk_model_find_word(VoskModel *model, const char *word); + + +/** Loads speaker model data from the file and returns the model object + * + * @param model_path: the path of the model on the filesystem + * @returns model object or NULL if problem occured */ +VoskSpkModel *vosk_spk_model_new(const char *model_path); + + +/** Releases the model memory + * + * The model object is reference-counted so if some recognizer + * depends on this model, model might still stay alive. When + * last recognizer is released, model will be released too. */ +void vosk_spk_model_free(VoskSpkModel *model); + +/** Creates the recognizer object + * + * The recognizers process the speech and return text using shared model data + * @param model VoskModel containing static data for recognizer. Model can be + * shared across recognizers, even running in different threads. + * @param sample_rate The sample rate of the audio you going to feed into the recognizer. + * Make sure this rate matches the audio content, it is a common + * issue causing accuracy problems. + * @returns recognizer object or NULL if problem occured */ +VoskRecognizer *vosk_recognizer_new(VoskModel *model, float sample_rate); + + +/** Creates the recognizer object with speaker recognition + * + * With the speaker recognition mode the recognizer not just recognize + * text but also return speaker vectors one can use for speaker identification + * + * @param model VoskModel containing static data for recognizer. Model can be + * shared across recognizers, even running in different threads. + * @param sample_rate The sample rate of the audio you going to feed into the recognizer. + * Make sure this rate matches the audio content, it is a common + * issue causing accuracy problems. + * @param spk_model speaker model for speaker identification + * @returns recognizer object or NULL if problem occured */ +VoskRecognizer *vosk_recognizer_new_spk(VoskModel *model, float sample_rate, VoskSpkModel *spk_model); + + +/** Creates the recognizer object with the phrase list + * + * Sometimes when you want to improve recognition accuracy and when you don't need + * to recognize large vocabulary you can specify a list of phrases to recognize. This + * will improve recognizer speed and accuracy but might return [unk] if user said + * something different. + * + * Only recognizers with lookahead models support this type of quick configuration. + * Precompiled HCLG graph models are not supported. + * + * @param model VoskModel containing static data for recognizer. Model can be + * shared across recognizers, even running in different threads. + * @param sample_rate The sample rate of the audio you going to feed into the recognizer. + * Make sure this rate matches the audio content, it is a common + * issue causing accuracy problems. + * @param grammar The string with the list of phrases to recognize as JSON array of strings, + * for example "["one two three four five", "[unk]"]". + * + * @returns recognizer object or NULL if problem occured */ +VoskRecognizer *vosk_recognizer_new_grm(VoskModel *model, float sample_rate, const char *grammar); + + +/** Adds speaker model to already initialized recognizer + * + * Can add speaker recognition model to already created recognizer. Helps to initialize + * speaker recognition for grammar-based recognizer. + * + * @param spk_model Speaker recognition model */ +void vosk_recognizer_set_spk_model(VoskRecognizer *recognizer, VoskSpkModel *spk_model); + + +/** Reconfigures recognizer to use grammar + * + * @param recognizer Already running VoskRecognizer + * @param grammar Set of phrases in JSON array of strings or "[]" to use default model graph. + * See also vosk_recognizer_new_grm + */ +void vosk_recognizer_set_grm(VoskRecognizer *recognizer, char const *grammar); + + +/** Configures recognizer to output n-best results + * + *
+ *   {
+ *      "alternatives": [
+ *          { "text": "one two three four five", "confidence": 0.97 },
+ *          { "text": "one two three for five", "confidence": 0.03 },
+ *      ]
+ *   }
+ * 
+ * + * @param max_alternatives - maximum alternatives to return from recognition results + */ +void vosk_recognizer_set_max_alternatives(VoskRecognizer *recognizer, int max_alternatives); + + +/** Enables words with times in the output + * + *
+ *   "result" : [{
+ *       "conf" : 1.000000,
+ *       "end" : 1.110000,
+ *       "start" : 0.870000,
+ *       "word" : "what"
+ *     }, {
+ *       "conf" : 1.000000,
+ *       "end" : 1.530000,
+ *       "start" : 1.110000,
+ *       "word" : "zero"
+ *     }, {
+ *       "conf" : 1.000000,
+ *       "end" : 1.950000,
+ *       "start" : 1.530000,
+ *       "word" : "zero"
+ *     }, {
+ *       "conf" : 1.000000,
+ *       "end" : 2.340000,
+ *       "start" : 1.950000,
+ *       "word" : "zero"
+ *     }, {
+ *       "conf" : 1.000000,
+ *       "end" : 2.610000,
+ *       "start" : 2.340000,
+ *       "word" : "one"
+ *     }],
+ * 
+ * + * @param words - boolean value + */ +void vosk_recognizer_set_words(VoskRecognizer *recognizer, int words); + +/** Like above return words and confidences in partial results + * + * @param partial_words - boolean value + */ +void vosk_recognizer_set_partial_words(VoskRecognizer *recognizer, int partial_words); + +/** Set NLSML output + * @param nlsml - boolean value + */ +void vosk_recognizer_set_nlsml(VoskRecognizer *recognizer, int nlsml); + + +/** Accept voice data + * + * accept and process new chunk of voice data + * + * @param data - audio data in PCM 16-bit mono format + * @param length - length of the audio data + * @returns 1 if silence is occured and you can retrieve a new utterance with result method + * 0 if decoding continues + * -1 if exception occured */ +int vosk_recognizer_accept_waveform(VoskRecognizer *recognizer, const char *data, int length); + + +/** Same as above but the version with the short data for language bindings where you have + * audio as array of shorts */ +int vosk_recognizer_accept_waveform_s(VoskRecognizer *recognizer, const short *data, int length); + + +/** Same as above but the version with the float data for language bindings where you have + * audio as array of floats */ +int vosk_recognizer_accept_waveform_f(VoskRecognizer *recognizer, const float *data, int length); + + +/** Returns speech recognition result + * + * @returns the result in JSON format which contains decoded line, decoded + * words, times in seconds and confidences. You can parse this result + * with any json parser + * + *
+ *  {
+ *    "text" : "what zero zero zero one"
+ *  }
+ * 
+ * + * If alternatives enabled it returns result with alternatives, see also vosk_recognizer_set_max_alternatives(). + * + * If word times enabled returns word time, see also vosk_recognizer_set_word_times(). + */ +const char *vosk_recognizer_result(VoskRecognizer *recognizer); + + +/** Returns partial speech recognition + * + * @returns partial speech recognition text which is not yet finalized. + * result may change as recognizer process more data. + * + *
+ * {
+ *    "partial" : "cyril one eight zero"
+ * }
+ * 
+ */ +const char *vosk_recognizer_partial_result(VoskRecognizer *recognizer); + + +/** Returns speech recognition result. Same as result, but doesn't wait for silence + * You usually call it in the end of the stream to get final bits of audio. It + * flushes the feature pipeline, so all remaining audio chunks got processed. + * + * @returns speech result in JSON format. + */ +const char *vosk_recognizer_final_result(VoskRecognizer *recognizer); + + +/** Resets the recognizer + * + * Resets current results so the recognition can continue from scratch */ +void vosk_recognizer_reset(VoskRecognizer *recognizer); + + +/** Releases recognizer object + * + * Underlying model is also unreferenced and if needed released */ +void vosk_recognizer_free(VoskRecognizer *recognizer); + +/** Set log level for Kaldi messages + * + * @param log_level the level + * 0 - default value to print info and error messages but no debug + * less than 0 - don't print info messages + * greather than 0 - more verbose mode + */ +void vosk_set_log_level(int log_level); + +/** + * Init, automatically select a CUDA device and allow multithreading. + * Must be called once from the main thread. + * Has no effect if HAVE_CUDA flag is not set. + */ +void vosk_gpu_init(); + +/** + * Init CUDA device in a multi-threaded environment. + * Must be called for each thread. + * Has no effect if HAVE_CUDA flag is not set. + */ +void vosk_gpu_thread_init(); + +/** Creates the batch recognizer object + * + * @returns model object or NULL if problem occured */ +VoskBatchModel *vosk_batch_model_new(const char *model_path); + +/** Releases batch model object */ +void vosk_batch_model_free(VoskBatchModel *model); + +/** Wait for the processing */ +void vosk_batch_model_wait(VoskBatchModel *model); + +/** Creates batch recognizer object + * @returns recognizer object or NULL if problem occured */ +VoskBatchRecognizer *vosk_batch_recognizer_new(VoskBatchModel *model, float sample_rate); + +/** Releases batch recognizer object */ +void vosk_batch_recognizer_free(VoskBatchRecognizer *recognizer); + +/** Accept batch voice data */ +void vosk_batch_recognizer_accept_waveform(VoskBatchRecognizer *recognizer, const char *data, int length); + +/** Set NLSML output + * @param nlsml - boolean value + */ +void vosk_batch_recognizer_set_nlsml(VoskBatchRecognizer *recognizer, int nlsml); + +/** Closes the stream */ +void vosk_batch_recognizer_finish_stream(VoskBatchRecognizer *recognizer); + +/** Return results */ +const char *vosk_batch_recognizer_front_result(VoskBatchRecognizer *recognizer); + +/** Release and free first retrieved result */ +void vosk_batch_recognizer_pop(VoskBatchRecognizer *recognizer); + +/** Get amount of pending chunks for more intelligent waiting */ +int vosk_batch_recognizer_get_pending_chunks(VoskBatchRecognizer *recognizer); + +#ifdef __cplusplus +} +#endif + +#endif /* VOSK_API_H */ diff --git a/src/Notes-master/jniLibs/x86/libvosk.so b/src/Notes-master/jniLibs/x86/libvosk.so new file mode 100644 index 0000000..3479db0 Binary files /dev/null and b/src/Notes-master/jniLibs/x86/libvosk.so differ diff --git a/src/Notes-master/jniLibs/x86_64/libvosk.so b/src/Notes-master/jniLibs/x86_64/libvosk.so new file mode 100644 index 0000000..98713b5 Binary files /dev/null and b/src/Notes-master/jniLibs/x86_64/libvosk.so differ diff --git a/src/Notes-master/mainfests/AndroidManifest.xml b/src/Notes-master/mainfests/AndroidManifest.xml index e099d24..de48c0c 100644 --- a/src/Notes-master/mainfests/AndroidManifest.xml +++ b/src/Notes-master/mainfests/AndroidManifest.xml @@ -26,6 +26,24 @@ + + + + + + + + + + + + + + + + + + @@ -42,6 +60,13 @@ + + + + + @@ -65,15 +90,6 @@ - - - - - - - @@ -162,7 +178,7 @@ + android:value=".ui.NotesListActivity" /> diff --git a/src/Notes-master/res/drawable/action_bg_color.xml b/src/Notes-master/res/drawable/action_bg_color.xml new file mode 100644 index 0000000..2a1d558 --- /dev/null +++ b/src/Notes-master/res/drawable/action_bg_color.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/src/Notes-master/res/drawable/action_underline.xml b/src/Notes-master/res/drawable/action_underline.xml new file mode 100644 index 0000000..6692796 --- /dev/null +++ b/src/Notes-master/res/drawable/action_underline.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/src/Notes-master/res/drawable/drawable-hdpi/bg_btn_insert_photo.png b/src/Notes-master/res/drawable/drawable-hdpi/bg_btn_insert_photo.png new file mode 100644 index 0000000..f8a0bfb Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/bg_btn_insert_photo.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/bg_btn_set_color.png b/src/Notes-master/res/drawable/drawable-hdpi/bg_btn_set_color.png new file mode 100644 index 0000000..5eb5d44 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/bg_btn_set_color.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/bg_btn_voice_transfomer.png b/src/Notes-master/res/drawable/drawable-hdpi/bg_btn_voice_transfomer.png new file mode 100644 index 0000000..632a08e Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/bg_btn_voice_transfomer.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/bg_color_btn_mask.png b/src/Notes-master/res/drawable/drawable-hdpi/bg_color_btn_mask.png new file mode 100644 index 0000000..100db77 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/bg_color_btn_mask.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/call_record.png b/src/Notes-master/res/drawable/drawable-hdpi/call_record.png new file mode 100644 index 0000000..fb88ca4 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/call_record.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/clock.png b/src/Notes-master/res/drawable/drawable-hdpi/clock.png new file mode 100644 index 0000000..5f2ae9a Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/clock.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/delete.png b/src/Notes-master/res/drawable/drawable-hdpi/delete.png new file mode 100644 index 0000000..643de3e Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/delete.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/dropdown_icon.9.png b/src/Notes-master/res/drawable/drawable-hdpi/dropdown_icon.9.png new file mode 100644 index 0000000..5525025 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/dropdown_icon.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/edit_blue.9.png b/src/Notes-master/res/drawable/drawable-hdpi/edit_blue.9.png new file mode 100644 index 0000000..55a1856 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/edit_blue.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/edit_green.9.png b/src/Notes-master/res/drawable/drawable-hdpi/edit_green.9.png new file mode 100644 index 0000000..2cb2d60 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/edit_green.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/edit_red.9.png b/src/Notes-master/res/drawable/drawable-hdpi/edit_red.9.png new file mode 100644 index 0000000..bae944a Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/edit_red.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/edit_title_blue.9.png b/src/Notes-master/res/drawable/drawable-hdpi/edit_title_blue.9.png new file mode 100644 index 0000000..96e6092 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/edit_title_blue.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/edit_title_green.9.png b/src/Notes-master/res/drawable/drawable-hdpi/edit_title_green.9.png new file mode 100644 index 0000000..08d8644 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/edit_title_green.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/edit_title_red.9.png b/src/Notes-master/res/drawable/drawable-hdpi/edit_title_red.9.png new file mode 100644 index 0000000..9c430e5 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/edit_title_red.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/edit_title_white.9.png b/src/Notes-master/res/drawable/drawable-hdpi/edit_title_white.9.png new file mode 100644 index 0000000..19e8d95 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/edit_title_white.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/edit_title_yellow.9.png b/src/Notes-master/res/drawable/drawable-hdpi/edit_title_yellow.9.png new file mode 100644 index 0000000..bf8f580 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/edit_title_yellow.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/edit_white.9.png b/src/Notes-master/res/drawable/drawable-hdpi/edit_white.9.png new file mode 100644 index 0000000..918f7a6 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/edit_white.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/edit_yellow.9.png b/src/Notes-master/res/drawable/drawable-hdpi/edit_yellow.9.png new file mode 100644 index 0000000..10cb642 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/edit_yellow.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/font_large.png b/src/Notes-master/res/drawable/drawable-hdpi/font_large.png new file mode 100644 index 0000000..78cf2e6 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/font_large.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/font_normal.png b/src/Notes-master/res/drawable/drawable-hdpi/font_normal.png new file mode 100644 index 0000000..9de7ced Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/font_normal.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/font_size_selector_bg.9.png b/src/Notes-master/res/drawable/drawable-hdpi/font_size_selector_bg.9.png new file mode 100644 index 0000000..be8e64c Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/font_size_selector_bg.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/font_small.png b/src/Notes-master/res/drawable/drawable-hdpi/font_small.png new file mode 100644 index 0000000..d3ff104 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/font_small.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/font_super.png b/src/Notes-master/res/drawable/drawable-hdpi/font_super.png new file mode 100644 index 0000000..85b13a1 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/font_super.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/icon_app.png b/src/Notes-master/res/drawable/drawable-hdpi/icon_app.png new file mode 100644 index 0000000..418aadc Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/icon_app.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/list_background.png b/src/Notes-master/res/drawable/drawable-hdpi/list_background.png new file mode 100644 index 0000000..087e1f9 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/list_background.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/list_blue_down.9.png b/src/Notes-master/res/drawable/drawable-hdpi/list_blue_down.9.png new file mode 100644 index 0000000..b88eebf Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/list_blue_down.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/list_blue_middle.9.png b/src/Notes-master/res/drawable/drawable-hdpi/list_blue_middle.9.png new file mode 100644 index 0000000..96b1c8b Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/list_blue_middle.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/list_blue_single.9.png b/src/Notes-master/res/drawable/drawable-hdpi/list_blue_single.9.png new file mode 100644 index 0000000..d7e7206 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/list_blue_single.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/list_blue_up.9.png b/src/Notes-master/res/drawable/drawable-hdpi/list_blue_up.9.png new file mode 100644 index 0000000..632e88c Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/list_blue_up.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/list_folder.9.png b/src/Notes-master/res/drawable/drawable-hdpi/list_folder.9.png new file mode 100644 index 0000000..829f61b Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/list_folder.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/list_footer_bg.9.png b/src/Notes-master/res/drawable/drawable-hdpi/list_footer_bg.9.png new file mode 100644 index 0000000..5325c25 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/list_footer_bg.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/list_green_down.9.png b/src/Notes-master/res/drawable/drawable-hdpi/list_green_down.9.png new file mode 100644 index 0000000..64a39d9 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/list_green_down.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/list_green_middle.9.png b/src/Notes-master/res/drawable/drawable-hdpi/list_green_middle.9.png new file mode 100644 index 0000000..897325a Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/list_green_middle.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/list_green_single.9.png b/src/Notes-master/res/drawable/drawable-hdpi/list_green_single.9.png new file mode 100644 index 0000000..c83405f Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/list_green_single.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/list_green_up.9.png b/src/Notes-master/res/drawable/drawable-hdpi/list_green_up.9.png new file mode 100644 index 0000000..141f9e1 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/list_green_up.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/list_red_down.9.png b/src/Notes-master/res/drawable/drawable-hdpi/list_red_down.9.png new file mode 100644 index 0000000..4224309 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/list_red_down.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/list_red_middle.9.png b/src/Notes-master/res/drawable/drawable-hdpi/list_red_middle.9.png new file mode 100644 index 0000000..9988f17 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/list_red_middle.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/list_red_single.9.png b/src/Notes-master/res/drawable/drawable-hdpi/list_red_single.9.png new file mode 100644 index 0000000..587c348 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/list_red_single.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/list_red_up.9.png b/src/Notes-master/res/drawable/drawable-hdpi/list_red_up.9.png new file mode 100644 index 0000000..46b4757 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/list_red_up.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/list_white_down.9.png b/src/Notes-master/res/drawable/drawable-hdpi/list_white_down.9.png new file mode 100644 index 0000000..29f9d8c Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/list_white_down.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/list_white_middle.9.png b/src/Notes-master/res/drawable/drawable-hdpi/list_white_middle.9.png new file mode 100644 index 0000000..77a4ab4 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/list_white_middle.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/list_white_single.9.png b/src/Notes-master/res/drawable/drawable-hdpi/list_white_single.9.png new file mode 100644 index 0000000..3e79189 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/list_white_single.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/list_white_up.9.png b/src/Notes-master/res/drawable/drawable-hdpi/list_white_up.9.png new file mode 100644 index 0000000..e23cd5c Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/list_white_up.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/list_yellow_down.9.png b/src/Notes-master/res/drawable/drawable-hdpi/list_yellow_down.9.png new file mode 100644 index 0000000..31cfc1e Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/list_yellow_down.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/list_yellow_middle.9.png b/src/Notes-master/res/drawable/drawable-hdpi/list_yellow_middle.9.png new file mode 100644 index 0000000..b6549b2 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/list_yellow_middle.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/list_yellow_single.9.png b/src/Notes-master/res/drawable/drawable-hdpi/list_yellow_single.9.png new file mode 100644 index 0000000..3faf507 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/list_yellow_single.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/list_yellow_up.9.png b/src/Notes-master/res/drawable/drawable-hdpi/list_yellow_up.9.png new file mode 100644 index 0000000..4ae791c Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/list_yellow_up.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/menu_delete.png b/src/Notes-master/res/drawable/drawable-hdpi/menu_delete.png new file mode 100644 index 0000000..ccdfc4b Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/menu_delete.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/menu_move.png b/src/Notes-master/res/drawable/drawable-hdpi/menu_move.png new file mode 100644 index 0000000..1140b71 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/menu_move.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/new_note_normal.png b/src/Notes-master/res/drawable/drawable-hdpi/new_note_normal.png new file mode 100644 index 0000000..ee9fb2d Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/new_note_normal.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/new_note_pressed.png b/src/Notes-master/res/drawable/drawable-hdpi/new_note_pressed.png new file mode 100644 index 0000000..c7affa1 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/new_note_pressed.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/note_edit_color_selector_panel.png b/src/Notes-master/res/drawable/drawable-hdpi/note_edit_color_selector_panel.png new file mode 100644 index 0000000..fc49552 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/note_edit_color_selector_panel.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/notification.png b/src/Notes-master/res/drawable/drawable-hdpi/notification.png new file mode 100644 index 0000000..b13ab4a Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/notification.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/search_result.png b/src/Notes-master/res/drawable/drawable-hdpi/search_result.png new file mode 100644 index 0000000..ff2befd Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/search_result.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/selected.png b/src/Notes-master/res/drawable/drawable-hdpi/selected.png new file mode 100644 index 0000000..b889bef Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/selected.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/title_alert.png b/src/Notes-master/res/drawable/drawable-hdpi/title_alert.png new file mode 100644 index 0000000..544ee9c Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/title_alert.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/title_bar_bg.9.png b/src/Notes-master/res/drawable/drawable-hdpi/title_bar_bg.9.png new file mode 100644 index 0000000..eb6bff0 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/title_bar_bg.9.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/widget_2x_blue.png b/src/Notes-master/res/drawable/drawable-hdpi/widget_2x_blue.png new file mode 100644 index 0000000..a1707f4 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/widget_2x_blue.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/widget_2x_green.png b/src/Notes-master/res/drawable/drawable-hdpi/widget_2x_green.png new file mode 100644 index 0000000..f86886c Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/widget_2x_green.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/widget_2x_red.png b/src/Notes-master/res/drawable/drawable-hdpi/widget_2x_red.png new file mode 100644 index 0000000..0e66c29 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/widget_2x_red.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/widget_2x_white.png b/src/Notes-master/res/drawable/drawable-hdpi/widget_2x_white.png new file mode 100644 index 0000000..5f0619a Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/widget_2x_white.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/widget_2x_yellow.png b/src/Notes-master/res/drawable/drawable-hdpi/widget_2x_yellow.png new file mode 100644 index 0000000..12d1c2b Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/widget_2x_yellow.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/widget_4x_blue.png b/src/Notes-master/res/drawable/drawable-hdpi/widget_4x_blue.png new file mode 100644 index 0000000..9183738 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/widget_4x_blue.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/widget_4x_green.png b/src/Notes-master/res/drawable/drawable-hdpi/widget_4x_green.png new file mode 100644 index 0000000..fa8b452 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/widget_4x_green.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/widget_4x_red.png b/src/Notes-master/res/drawable/drawable-hdpi/widget_4x_red.png new file mode 100644 index 0000000..62de074 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/widget_4x_red.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/widget_4x_white.png b/src/Notes-master/res/drawable/drawable-hdpi/widget_4x_white.png new file mode 100644 index 0000000..a37d67c Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/widget_4x_white.png differ diff --git a/src/Notes-master/res/drawable/drawable-hdpi/widget_4x_yellow.png b/src/Notes-master/res/drawable/drawable-hdpi/widget_4x_yellow.png new file mode 100644 index 0000000..d7c5fa4 Binary files /dev/null and b/src/Notes-master/res/drawable/drawable-hdpi/widget_4x_yellow.png differ diff --git a/src/Notes-master/res/drawable/drawable/action_bg_color.xml b/src/Notes-master/res/drawable/drawable/action_bg_color.xml new file mode 100644 index 0000000..2a1d558 --- /dev/null +++ b/src/Notes-master/res/drawable/drawable/action_bg_color.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/src/Notes-master/res/drawable/drawable/action_bold.xml b/src/Notes-master/res/drawable/drawable/action_bold.xml new file mode 100644 index 0000000..6f6af0e --- /dev/null +++ b/src/Notes-master/res/drawable/drawable/action_bold.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/src/Notes-master/res/drawable/drawable/action_italic.xml b/src/Notes-master/res/drawable/drawable/action_italic.xml new file mode 100644 index 0000000..3efecea --- /dev/null +++ b/src/Notes-master/res/drawable/drawable/action_italic.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/src/Notes-master/res/drawable/drawable/action_undo.xml b/src/Notes-master/res/drawable/drawable/action_undo.xml new file mode 100644 index 0000000..a19c057 --- /dev/null +++ b/src/Notes-master/res/drawable/drawable/action_undo.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/src/Notes-master/res/drawable/drawable/ic_launcher_background.xml b/src/Notes-master/res/drawable/drawable/ic_launcher_background.xml new file mode 100644 index 0000000..ca3826a --- /dev/null +++ b/src/Notes-master/res/drawable/drawable/ic_launcher_background.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Notes-master/res/drawable/drawable/ic_launcher_foreground.xml b/src/Notes-master/res/drawable/drawable/ic_launcher_foreground.xml new file mode 100644 index 0000000..2b068d1 --- /dev/null +++ b/src/Notes-master/res/drawable/drawable/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/src/Notes-master/res/drawable/drawable/new_note.xml b/src/Notes-master/res/drawable/drawable/new_note.xml new file mode 100644 index 0000000..2154ebc --- /dev/null +++ b/src/Notes-master/res/drawable/drawable/new_note.xml @@ -0,0 +1,23 @@ + + + + + + + + diff --git a/src/Notes-master/res/drawable/drawable/new_note_pressed_background.xml b/src/Notes-master/res/drawable/drawable/new_note_pressed_background.xml new file mode 100644 index 0000000..ca3826a --- /dev/null +++ b/src/Notes-master/res/drawable/drawable/new_note_pressed_background.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Notes-master/res/layout/note_edit.xml b/src/Notes-master/res/layout/note_edit.xml index 52738c5..4af2c53 100644 --- a/src/Notes-master/res/layout/note_edit.xml +++ b/src/Notes-master/res/layout/note_edit.xml @@ -55,24 +55,71 @@ android:layout_marginLeft="2dip" android:layout_marginRight="8dip" android:textAppearance="@style/TextAppearanceSecondaryItem" /> + + + - + + android:scrollbars="none" + android:minHeight="30dp"> - - + + + + + + android:orientation="horizontal" + android:gravity="center_vertical" + android:padding="4dp" + android:layout_marginTop="8dp" + android:minHeight="40dp"> + + + +