This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
DIR=`pwd` | |
sox -n -r 16000 "silence.wav" trim 0 10 | |
cp silence.wav otherstuff.wav | |
#NB, each game should contain one move on each line. quadrant names such as a and b need to be followed by a space in order to make sense to festival. otherwise they will come out as b four three, etc. | |
while IFS= read -r line; do | |
echo "$line" | text2wave -o temp.wav | |
sox "otherstuff.wav" "temp.wav" "silence.wav" "output.wav" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b34. a43. b53. c34. a35. a39. d34. d54. d53. d63. d43. d64. d45. c54. c3. c83. d83. d66. d38. c5. c94. c86. c84. c73. d85. d47. d48. d58. d59. d86. c74. c64. c76. c77. c96. c87. d96. d95. d75. d76. c6. d97. c95. a54. c98. d69. d5. d68. d37. a46. d6. d99. a37. a47. a38. a48. a29. b39. a49. b35. b45. b36. b24. a36. a26. a25. a27. a34. b4. b55. b3. c38. c48. c37. b49. b29. b46. b47. b57. b56. b44. b58. b48. b67. b37. b2. b57. b83. a3. a83. a5. b94. a4. b47. b95. b63. b62. b72. b64. b74. b73. b65. b63. b84. b82. b38. b57. b92. b71. b47. b27. b7. b57. b86. b93. b47. c65. c66. b57. d72. c63. c53. c62. c72. c8. b47. d98. d88. b57. a92. d7. d89. b9. d46. d36. d52. d42. d41. d31. d51. d82. d32. d22. d21. d23. d71. b47. b98. a2. c75. b87. b77. b85. b75. b88. b96. b97. a6. a7. a96. a84. a74. a85. a75. a86. b69. a76. c92. a66. a72. c68. a97. a98. c78. c57. 10. a9. c89. c2. c56. c39. c29. c47. c46. a15. a24. c69. b8. b89. c99. b99. | |
b34. a43. d34. c43. a35. a39. d53. b53. d39. a54. a46. a59. a48. a49. a23. a37. a47. a26. a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding=UTF-8 | |
import os, sys, tempfile | |
for file in sys.argv[1:]: | |
f = open(file) | |
fs = f.read() | |
r1 = fs.replace('\n',' ') | |
r2 = r1.replace('\r',' ') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding=UTF-8 | |
import os, sys, tempfile | |
for file in sys.argv[1:]: | |
f = open(file) | |
fs = f.read() | |
r1 = fs.replace('a','a ') | |
r2 = r1.replace('b','b ') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
sox -n -r 16000 -s "silents.raw" trim 0 5 | |
#NB, each game should contain one move on each line, followed by a period. quadrant names such as a and b need to be followed by a space in order to make sense to festival. otherwise they will come out as b four three, etc. | |
while IFS= read -r line; do | |
echo "$line" | text2wave -otype raw -F 16000 >> temp.raw | |
cat silents.raw temp.raw >> output.raw | |
rm -rf temp.raw | |
done < $@ |