{"id":16146097,"url":"https://github.com/libdriver/syn6658","last_synced_at":"2025-06-19T00:07:52.991Z","repository":{"id":254726121,"uuid":"847309438","full_name":"libdriver/syn6658","owner":"libdriver","description":"SYN6658 full function driver library for general MCU and Linux.","archived":false,"fork":false,"pushed_at":"2025-03-14T13:43:06.000Z","size":3470,"stargazers_count":8,"open_issues_count":0,"forks_count":5,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-08T22:07:51.583Z","etag":null,"topics":["c","full-function-driver","linux","mcu","speech-synthesis","spi","syn6658","uart"],"latest_commit_sha":null,"homepage":"https://www.libdriver.com","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/libdriver.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-25T13:09:47.000Z","updated_at":"2025-03-14T13:42:41.000Z","dependencies_parsed_at":"2024-08-25T17:45:03.718Z","dependency_job_id":"a9a7f210-94b1-4534-a11a-884f173bf798","html_url":"https://github.com/libdriver/syn6658","commit_stats":null,"previous_names":["libdriver/syn6658"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/libdriver/syn6658","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libdriver%2Fsyn6658","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libdriver%2Fsyn6658/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libdriver%2Fsyn6658/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libdriver%2Fsyn6658/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libdriver","download_url":"https://codeload.github.com/libdriver/syn6658/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libdriver%2Fsyn6658/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260654683,"owners_count":23042679,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","full-function-driver","linux","mcu","speech-synthesis","spi","syn6658","uart"],"created_at":"2024-10-10T00:18:48.851Z","updated_at":"2025-06-19T00:07:47.952Z","avatar_url":"https://github.com/libdriver.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"[English](/README.md) | [ 简体中文](/README_zh-Hans.md) | [繁體中文](/README_zh-Hant.md) | [日本語](/README_ja.md) | [Deutsch](/README_de.md) | [한국어](/README_ko.md)\n\n\u003cdiv align=center\u003e\n\u003cimg src=\"/doc/image/logo.svg\" width=\"400\" height=\"150\"/\u003e\n\u003c/div\u003e\n\n## LibDriver SYN6658\n\n[![MISRA](https://img.shields.io/badge/misra-compliant-brightgreen.svg)](/misra/README.md) [![API](https://img.shields.io/badge/api-reference-blue.svg)](https://www.libdriver.com/docs/syn6658/index.html) [![License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](/LICENSE)\n\nSYN6658 Chinese speech synthesis chip is a high-end speech synthesis chip with higher cost-effectiveness and more natural effects, newly launched by Beijing Yuyin Tianxia Technology Co., Ltd. in 2012. SYN6658 receives text data to be synthesized through UART or SPI interface communication, achieving text to speech (or TTS speech) conversion. The latest SYN6658 speech synthesis chip launched by the company inherits the excellent features of OSYNO6188 and SYN6288 speech chips: small-sized patch packaging, simple hardware interface, low power consumption, clear and round tone, and extremely high cost-effectiveness; In addition, SYN6658 has made text/number/string recognition more intelligent and accurate, and the naturalness of speech synthesis has been greatly improved. SYN6658 has achieved a qualitative leap in speech synthesis performance and intelligence, making it a truly high-end Chinese speech synthesis chip for industry applications.\n\nLibDriver SYN6658 is the full function driver of SYN6658 launched by LibDriver.It provides text synthesis, sound synthesis and other functions. LibDriver is MISRA compliant.\n\n### Table of Contents\n\n  - [Instruction](#Instruction)\n  - [Install](#Install)\n  - [Usage](#Usage)\n    - [example basic](#example-basic)\n  - [Document](#Document)\n  - [Contributing](#Contributing)\n  - [License](#License)\n  - [Contact Us](#Contact-Us)\n\n### Instruction\n\n/src includes LibDriver SYN6658 source files.\n\n/interface includes LibDriver SYN6658 UART, SPI platform independent template.\n\n/test includes LibDriver SYN6658 driver test code and this code can test the chip necessary function simply.\n\n/example includes LibDriver SYN6658 sample code.\n\n/doc includes LibDriver SYN6658 offline document.\n\n/datasheet includes SYN6658 datasheet.\n\n/project includes the common Linux and MCU development board sample code. All projects use the shell script to debug the driver and the detail instruction can be found in each project's README.md.\n\n/misra includes the LibDriver MISRA code scanning results.\n\n### Install\n\nReference /interface UART, SPI platform independent template and finish your platform UART, SPI driver.\n\nAdd the /src directory, the interface driver for your platform, and your own drivers to your project, if you want to use the default example drivers, add the /example directory to your project.\n\n### Usage\n\nYou can refer to the examples in the /example directory to complete your own driver. If you want to use the default programming examples, here's how to use them.\n\n#### example basic\n\n```C\n#include \"driver_syn6658_basic.h\"\n\nuint8_t res;\nchar text[129] = \"你好\";\nuint8_t text0[] = {0xB4, 0xCB, 0xB9, 0xA6, 0xC4, 0xDC, 0xBF, 0xC9, 0xD2, 0xD4, 0xBD, 0xAB, 0xB1, 0xBB, 0x00};\nuint8_t text1[] = {0xB4, 0xF2, 0xC2, 0xD2, 0xCB, 0xB3, 0xD0, 0xF2, 0xB5, 0xC4, 0xD2, 0xBB, 0xB6, 0xCE, 0xCE, 0xC4, 0x00};\nuint8_t text2[] = {0xB1, 0xBE, 0xB0, 0xB4, 0xBF, 0xCD, 0xBB, 0xA7, 0xCF, 0xA3, 0xCD, 0xFB, 0xB5, 0xC4, 0xCB, 0xB3, 0xD0, 0xF2, 0xB7, 0xD6, 0x00};\nuint8_t text3[] = {0xB6, 0xCE, 0xBB, 0xBA, 0xB4, 0xE6, 0xBA, 0xF3, 0xD2, 0xBB, 0xC6, 0xF0, 0xB2, 0xA5, 0xB7, 0xC5, 0xA1, 0xA3, 0x00};\n\n/* basic init */\nres = syn6658_basic_init(SYN6658_INTERFACE_UART);\nif (res != 0)\n{\n    return 1;\n}\n\n...\n    \n/* delay 500ms */\nsyn6658_interface_delay_ms(500);\n\n/* syn */\nres = syn6658_basic_synthesis(text);\nif (res != 0)\n{\n    (void)syn6658_basic_deinit();\n\n    return 1;\n}\n(void)syn6658_basic_sync();\n\n...\n\n/* sound test */\nres = syn6658_synthesis_text(\u0026gs_handle, (char const *)SYN6658_SOUND_202);\nif (res != 0)\n{\n    (void)syn6658_deinit(\u0026gs_handle);\n\n    return 1;\n}\n(void)syn6658_basic_sync();\n\n...\n\n/* text test */\nres = syn6658_basic_save_text(0, text0);\nif (res != 0)\n{\n    (void)syn6658_deinit(\u0026gs_handle);\n\n    return 1;\n}\nres = syn6658_basic_save_text(1, text1);\nif (res != 0)\n{\n    (void)syn6658_deinit(\u0026gs_handle);\n\n    return 1;\n}\nres = syn6658_basic_save_text(2, text2);\nif (res != 0)\n{\n    (void)syn6658_deinit(\u0026gs_handle);\n\n    return 1;\n}\nres = syn6658_basic_save_text(3, text3);\nif (res != 0)\n{\n    (void)syn6658_deinit(\u0026gs_handle);\n\n    return 1;\n}\nres = syn6658_basic_play_text(1, SYN6658_TYPE_GB2312);\nif (res != 0)\n{\n    (void)syn6658_deinit(\u0026gs_handle);\n\n    return 1;\n}\n\n...\n    \n/* basic deinit */\n(void)syn6658_basic_deinit();\n```\n\n### Document\n\nOnline documents: [https://www.libdriver.com/docs/syn6658/index.html](https://www.libdriver.com/docs/syn6658/index.html).\n\nOffline documents: /doc/html/index.html.\n\n### Contributing\n\nPlease refer to CONTRIBUTING.md.\n\n### License\n\nCopyright (c) 2015 - present LibDriver All rights reserved\n\n\n\nThe MIT License (MIT) \n\n\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\n\nof this software and associated documentation files (the \"Software\"), to deal\n\nin the Software without restriction, including without limitation the rights\n\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\ncopies of the Software, and to permit persons to whom the Software is\n\nfurnished to do so, subject to the following conditions: \n\n\n\nThe above copyright notice and this permission notice shall be included in all\n\ncopies or substantial portions of the Software. \n\n\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n\nSOFTWARE. \n\n### Contact Us\n\nPlease send an e-mail to lishifenging@outlook.com.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibdriver%2Fsyn6658","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibdriver%2Fsyn6658","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibdriver%2Fsyn6658/lists"}