TA的每日心情 | 擦汗 2021-11-17 09:18 |
---|
签到天数: 79 天 [LV.6]常住居民II
|
我在使用 pyglossary 转换macOS Dictionary词典时, 需要使用speex转换语音文件发生了问题
( w/ q) p6 y% s0 [& n ?/ T! \$ V/ ^% x5 I1 c
我根据这个博客执行的 https://kaihao.io/2018/mdict-to-macos-dictionary/# P& Y; Y% U" r6 R- H
5 Z" s" T1 S% W' i- find OtherResources -name "*.spx" -execdir sh -c 'spx={};speexdec $spx ${spx%.*}.wav' \;
复制代码 % ~5 I/ k- i* t( M5 n5 o
/ }7 G, F8 o O+ B5 r! S
) A O6 q F* l4 Y# g8 Y/ ^1 I2 x9 V在转换过程中,iterm2 会用 vi 打开新的 spx文件 , 我保存了, 接下来有个 spx文件使用 GNU nano 打开了,我对 GNU nano完全陌生不知道如何操作
& P* d3 v$ A! t' o, ^' {' N1 p z2 O( L4 k- c; M7 Z1 w
0 @1 H r, }3 t( R. q' g3 {
$ j v8 v5 a0 g2 d; M' O$ U- Y4 m# Q
我退出了这个文件, 接下来还有几个进入vi的spx文件,我都一一保存了, 最后提示
8 s* L5 z4 r# j7 J- sh: galaxy.spx: command not found
) u$ Q0 e0 l* L/ V6 r$ Y9 H - .wav: No such file or directory7 k3 i+ _8 {4 n6 o: I
& [- p0 k) n) E1 z8 G9 s: [- Encoded with Speex speex-1.2beta3( M# ]+ L% P8 w3 Q0 o p4 m
- sh: and: command not found
) r7 H: q7 J* {$ d/ Z: J - .wav: No such file or directory
, i" \* t( j# u7 w9 a - L- Q- |4 Q, H& Y9 y8 J `& S
- sh: address.spx: command not found
' ~8 L# c. z+ a3 Q0 a/ ~ - .wav: No such file or directory* A& m1 p5 X3 k2 h+ ?9 t+ ]. p
- 3 L) G( P: S: F: g8 H+ X
- sh: man.spx: command not found# r* }- G6 x q& m
- .wav: No such file or directory: Y; i4 K4 F; J R+ [
$ n4 j1 i3 ~$ f& Y9 P; y& L0 v- sh: Mountains.spx: command not found
, d; {: S& t, Z$ Y3 u - .wav: No such file or directory& L# x2 l! x$ c$ ]2 Y
- ) i& q; I6 a! {; f5 k- A' \
- Druz.spx: No such file or directory
复制代码
9 ]: r+ d& Z, l# K! w- [, i
! J$ ^- I. X$ t- P$ I/ S( F5 Z7 l: B- T7 f3 l$ M
, Z( n# ~ z, z; H$ T- B/ K. m6 ?, P; q8 D F, b' |
这一系列 报错, 在提示没有galaxy.spx 这个文件还会继续执行下去1 C& U3 M4 f; Q( W
* N1 x H* h! k; {: ^
在遇到 没有Druz.spx 文件时卡住了 ,按 回车键 出现下面这样# S a+ I2 l: |; c( ~ A5 Y' T: w
9 @& A4 m- ?' F& |" @5 p: D2 a! I$ h# U: m( h
" ]! G+ l$ D4 L
在我使用 control + C 终止退出时, 出现 stdin: Input/output error ,不停的运行 ,每运行一次就出现一行stdin: Input/output error,
- L& L$ t2 c) F. i3 L% c+ n# ]7 z0 G* b Y
% ~8 J+ M3 V, w& F; f7 ^9 I( Q( c6 H
: y2 _+ y$ V0 }- n
我从后台杀掉进程,再度打开iterm2 还会恢复这个会话,
, {2 F# Z' j6 t$ c4 L最后我从iterm2 内设置了不恢复会话 才解决。
: A* @% N: Q; B Z, {' C$ y, z y* Z* k6 F! O
d. h5 T" z4 Z4 A# J
# V, ? n' }: G' v! [1 b. X; L
1 Y( S3 Q2 E7 b: ~" q4 B( l& I& b& l2 R
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?免费注册
x
|