<commit_before>//- index.jade
extends ./layout.jade

block row-content
  div.row
    div.col-lg-6.col-md-6.col-xs-12
      h2 Transcribe from Streaming Audio
      div.mic-container.well.overlay-container
        div.unsupported-overlay
          h4 This application only works in recent versions of 
            a(href="https://www.google.com/intl/en/chrome/browser/desktop/", target="_blank") Chrome
            |  supporting HTML5 audio capture.
        div.row
          div.col-lg-12.col-md-12.col-xs-12
            p.form-group For best results, please use a hi-speed internet connection and a close talking microphone (e.g., from a headset) in a quiet area.  
            div.microphone
              div.micButton-preload
              div.micButton
              p.micText Press to start speaking
      h2 Transcribe from Audio Files
      div.row.well
        div.col-lg-12.col-md-12.col-xs-12
          div.row.form-group
            div.col-lg-12.col-md-12.col-xs-12.upload-label
              span Use an existing file for the service to transcribe.
          div.row
            div.sample-audio.col-lg-6.col-md-6.col-xs-6.text-center
              a.sample-btn.audio1(href='javascript:void(0);')
                img.sample-icon(src='images/play-icon.svg')
                p.sample-title Sample1.wav
              a.btn.btn-block.send-api-audio1 Send to API
            div.sample-audio.col-lg-6.col-md-6.col-xs-6.text-center
              a.sample-btn.audio2(href='javascript:void(0);')
                img.sample-icon(src='images/play-icon.svg')
                p.sample-title Sample2.wav
                a.btn.btn-block.send-api-audio2 Send to API
          div.row.custom-file
            div.col-lg-12.col-md-12.col-xs-12.custom-label
              span Or drag your own file for transcription.
            div.sample-audio.col-lg-6.col-md-6.col-xs-6.text-center
              a.sample-btn.audio3(href='javascript:void(0);')
                img.sample-icon(src='images/play-icon.svg')
                p.custom.sample-title [Your file].wav
                a.btn.btn-block.send-api-audio3 Send to API
            div.col-lg-6.col-md-6.col-xs-6#fileUploadTarget Drag your file here

    div.col-lg-6.col-md-6.col-xs-12
      h2 Options
      div.row
        div.col-lg-12.col-md-12.col-xs-12.select-options
          div.row
            span Please select the audio language and bandwidth
          div.row.form-group
            label(for="languageSelect").control-label Language
            select(name="languageSelect").form-control
              option(value="english") English
              option(value="spanish") Spanish
              option(value="japanese") Japanese
          div.row.form-group
            label(for="bandwidthSelect").control-label Bandwidth
            select(name="bandwidthSelect").form-control
              option(value="narrowband") Narrow-band
              option(value="wideband") Wide-band

      h2 Output
      p To test your mic, say "one two three four five."
        | If the words are not recorded correctly, you may need to
        | adjust your audio input device or settings. If the response seems slow,
        | it could be a network issue. If you're still having trouble,
        | please use the sample files instead.
      div.well
        div.form-group.row.loading.text-center(style='display:none')
          img(src='images/watson.gif')
        div.errorMsg
        div#text
  div.row<commit_msg>Add drag and drop target<commit_after>//- index.jade
extends ./layout.jade

block row-content
  div.row
    div.col-lg-6.col-md-6.col-xs-12
      h2 Transcribe from Streaming Audio
      div.mic-container.well.overlay-container
        div.unsupported-overlay
          h4 This application only works in recent versions of 
            a(href="https://www.google.com/intl/en/chrome/browser/desktop/", target="_blank") Chrome
            |  supporting HTML5 audio capture.
        div.row
          div.col-lg-12.col-md-12.col-xs-12
            p.form-group For best results, please use a hi-speed internet connection and a close talking microphone (e.g., from a headset) in a quiet area.  
            div.microphone
              div.micButton-preload
              div.micButton
              p.micText Press to start speaking
      h2 Transcribe from Audio Files
      div.row.well
        div.col-lg-12.col-md-12.col-xs-12
          div.row.form-group
            div.col-lg-12.col-md-12.col-xs-12.upload-label
              span Use an existing file for the service to transcribe.
          div.row
            div.sample-audio.col-lg-6.col-md-6.col-xs-6.text-center
              a.sample-btn.audio1(href='javascript:void(0);')
                img.sample-icon(src='images/play-icon.svg')
                p.sample-title Sample1.wav
              a.btn.btn-block.send-api-audio1 Send to API
            div.sample-audio.col-lg-6.col-md-6.col-xs-6.text-center
              a.sample-btn.audio2(href='javascript:void(0);')
                img.sample-icon(src='images/play-icon.svg')
                p.sample-title Sample2.wav
                a.btn.btn-block.send-api-audio2 Send to API
          div.row.custom-file
            div.col-lg-12.col-md-12.col-xs-12.custom-label
              div#dragText Or drag your own file for transcription:
            div.col-lg-6.col-md-6.col-xs-6.col-xs-offset-3#fileUploadTarget Drag your file here

    div.col-lg-6.col-md-6.col-xs-12
      h2 Options
      div.row
        div.col-lg-12.col-md-12.col-xs-12.select-options
          div.row
            span Please select the audio language and bandwidth
          div.row.form-group
            label(for="languageSelect").control-label Language
            select(name="languageSelect").form-control
              option(value="english") English
              option(value="spanish") Spanish
              option(value="japanese") Japanese
          div.row.form-group
            label(for="bandwidthSelect").control-label Bandwidth
            select(name="bandwidthSelect").form-control
              option(value="narrowband") Narrow-band
              option(value="wideband") Wide-band

      h2 Output
      p To test your mic, say "one two three four five."
        | If the words are not recorded correctly, you may need to
        | adjust your audio input device or settings. If the response seems slow,
        | it could be a network issue. If you're still having trouble,
        | please use the sample files instead.
      div.well
        div.form-group.row.loading.text-center(style='display:none')
          img(src='images/watson.gif')
        div.errorMsg
        div#text
  div.row
{'fraction_non_alphanumeric': 0.1086271567891973, 'fraction_numerical': 0.01935483870967742, 'mean_word_length': 1.8353891960867716, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4355254', 'n_tokens_mistral': 2050, 'n_tokens_neox': 1974, 'n_words': 429}