# audio_file_mapper_generator **Repository Path**: johnnyzzz/audio_file_mapper_generator ## Basic Information - **Project Name**: audio_file_mapper_generator - **Description**: No description available - **Primary Language**: NodeJS - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-04-24 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 音频映射文件生成工具 本工具用来生成单字音频映射文件。 ### 使用说明 ``` Usage: index [options] Options: 文件格式说明: [96字节全0保留数据][16字节ASCII版本号][2字节BCD总字数][[[2字节UNICODE中文字符][2字节BCD文件长度][2字节BCD文件数据偏移量]]...][[文件数据]...] -r, --resourceDir [String] 资源目录 -o, --outFile [String] 输出文件 -v, --fileVersion [String] 文件版本 -h, --help output usage information ``` #### 安装工程依赖包 ``` npm install ``` #### 安装pkg打包工具 ``` npm install -g pkg ``` #### 运行打包工具 ``` pkg index.js ``` 这个命令会生成各平台的可执行工具。 file_mappager.json示例: ``` [ { "word": "我", "file": "我.mp3" }, { "word": "是", "file": "是.mp3" }, { "word": "中", "file": "中.mp3" }, { "word": "国", "file": "国.mp3" }, { "word": "人", "file": "人.mp3" } ] ```