[Julius-cvs 253] CVS update: julius4/adinrec

アーカイブの一覧に戻る

sumom****@users***** sumom****@users*****
2008年 9月 25日 (木) 14:00:04 JST


Index: julius4/adinrec/adinrec.c
diff -u julius4/adinrec/adinrec.c:1.2 julius4/adinrec/adinrec.c:1.3
--- julius4/adinrec/adinrec.c:1.2	Tue Dec 18 17:45:46 2007
+++ julius4/adinrec/adinrec.c	Thu Sep 25 14:00:02 2008
@@ -12,7 +12,7 @@
  * @author Akinobu LEE
  * @date   Wed Mar 23 20:33:01 2005
  *
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
  * 
  */
 /*
@@ -44,6 +44,7 @@
 {
   fprintf(stderr, "adinrec --- record one sentence input to a file\n");
   fprintf(stderr, "Usage: adinrec [options..] filename\n");
+  fprintf(stderr, "    [-input mic|alsa|oss|esd|...]  input source       (mic)\n");
   fprintf(stderr, "    [-freq frequency]     sampling frequency in Hz    (%ld)\n", jconf->am_root->analysis.para_default.smp_freq);
   fprintf(stderr, "    [-48]                 48000Hz recording with down sampling (16kHz only)\n");
   fprintf(stderr, "    [-lv unsignedshort]   silence cut level threshold (%d)\n", jconf->detect.level_thres);
@@ -234,12 +235,16 @@
     filename = argv[argc-1];
   }
 
+  /* set default as same as "-input mic" */
+  jconf->input.type = INPUT_WAVEFORM;
+  jconf->input.speech_input = SP_MIC;
+  jconf->input.device = SP_INPUT_DEFAULT;
+
   /* read arguments and set parameters */
   if (j_config_load_args(jconf, argc-1, argv) == -1) {
     fprintf(stderr, "Error reading arguments\n");
     return -1;
   }
-  jconf->input.speech_input = SP_MIC;
 
   /* exit if no file name specified */
   if (filename == NULL) {


Julius-cvs メーリングリストの案内
アーカイブの一覧に戻る