Hindi accent using deepspeech

@bharath.vadithya I still don’t know, also, with your simplified CSV file, what is the runtime error that you are facing.

i have given the full script for you …i am following https://youtu.be/aUSyzNr6iK8?t=1358 iam following this video exactly

The script is incorrectly pasted. The forum software mangles some of its content thinking this is text formatting information.

I am starting to run out of time to help you now. Please share pure text properly pasted so I can know exactly what you run.

If I can’t check what you do, do you understand that I cannot help you ?

i have given the full script information that iam using . if something is wrong then can you please suggest me to how a script file should me coded or built

Just paste it properly on the forum. Use proper code formatting feature. I really don’t know how to say it more clearly …

I’m also still waiting on the runtime error you face when running code against that CSV file.

iam not running any code on that csv file. i have just given the path in that script file under the flag --train_files /home/metlife-vad/DeepSpeech/minigir/train/miniger-train.csv \

How am I supposed to know that ? Then you likely still have an issue in /home/metlife-vad/DeepSpeech/minigir/train/miniger-train.csv ?

this message box is supporting the limited features for perfect code foramtting … but still iam sending you … can i go for screenshot for one last time

there is only one row in csv file as of now. and i have shared it to you …please check above.
i have sent csv file, script, error message. everything you want know

You keep giving confusing informations. Once “this is not this CSV that I am running”, now you state it is.

No, you have spread informations amongst the thread, with no consistency, and not sharing the script in a readable manner.

I still don’t know:

  • what is your script, since your paste is broken and some of the script content is unavailable
  • what is your dataset, since once you refer to a one-line csv and next you refer to some file on your filesystem
  • what is the error when you run those

Please don’t, this will be problematic to others as well as to myself.

@bharath.vadithya I really don’t understand, since you have been able to properly paste your stack in Hindi accent using deepspeech. I just need the same proper formatting and all informations together, at once.

#!/usr/bin/env bash

set -xe
if [ ! -f DeepSpeech.py ]; then
echo “Please make sure you run this from DeepSpeech’s top level directory.”
exit 1
fi;

python3 -u DeepSpeech.py \
   --train_files /home/metlife-vad/DeepSpeech/minigir/train/miniger-train.csv \
   --dev_files /home/metlife-vad/Deepspeech/minigir/train/miniger-train.csv \
   --test_files /home/metlife-vad/Deepspeech/minigir/train/miniger-train.csv \
   --train_batch_size 48 \
   --dev_batch_size 40 \
   --test_batch_size 40 \
   --n_hidden 1024 \
   --epochs 64 \
   --early_stop True \
   --es_steps 6 \
   --es_mean_th 0.1 \
   --es_std_th 0.1 \
   --dropout_rate 0.30 \
   --learning_rate 0.0005 \
   --report_count 100 \
   --export_dir /metlife-models/ \
   --checkpoint_dir /home/metlife-vad/Deepspeech/metlife-models/check_point \
   --alphabet_config_path /home/metlife-vad/metlife-models/alphabet.txt \
   --lm_binary_path /home/metlife-vad/Deepspeech/metlife-models/lm.binary \
  --lm_trie_path /home/metlife-vad/Deepspeech/metlife-models/trie \
"$@"

This is still wrong, but at least the meaningful part is right.

Wrongly pasted, again.

How hard can it be?
```
CODE
```

CODE

the csv file contains only this much data …for one audio file

+ '[' '!' -f DeepSpeech.py ']'
+ python3 -u DeepSpeech.py --train_files /home/metlife-vad/DeepSpeech/minigir/train/miniger-train.csv --dev_files /home/metlife-vad/Deepspeech/minigir/train/miniger-train.csv --test_files /home/metlife-vad/Deepspeech/minigir/train/miniger-train.csv --train_batch_size 48 --dev_batch_size 40 --test_batch_size 40 --n_hidden 1024 --epochs 64 --early_stop True --es_steps 6 --es_mean_th 0.1 --es_std_th 0.1 --dropout_rate 0.30 --learning_rate 0.0005 --report_count 100 --export_dir /metlife-models/ --checkpoint_dir /home/metlife-vad/Deepspeech/metlife-models/check_point --alphabet_config_path /home/metlife-vad/metlife-models/alphabet.txt --lm_binary_path /home/metlife-vad/Deepspeech/metlife-models/lm.binary --lm_trie_path /home/metlife-vad/Deepspeech/metlife-models/trie
Traceback (most recent call last):
  File "/home/metlife-vad/.local/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 4736, in get_value
    return libindex.get_value_box(s, key)
  File "pandas/_libs/index.pyx", line 51, in pandas._libs.index.get_value_box
  File "pandas/_libs/index.pyx", line 47, in pandas._libs.index.get_value_at
  File "pandas/_libs/util.pxd", line 98, in pandas._libs.util.get_value_at
  File "pandas/_libs/util.pxd", line 83, in pandas._libs.util.validate_indexer
TypeError: 'str' object cannot be interpreted as an integer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/metlife-vad/DeepSpeech/util/text.py", line 85, in text_to_char_array
    transcript = np.asarray(alphabet.encode(series['transcript']))
  File "/home/metlife-vad/.local/lib/python3.7/site-packages/pandas/core/series.py", line 1071, in __getitem__
    result = self.index.get_value(self, key)
  File "/home/metlife-vad/.local/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 4744, in get_value
    raise e1
  File "/home/metlife-vad/.local/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 4730, in get_value
    return self._engine.get_value(s, k, tz=getattr(series.dtype, "tz", None))
  File "pandas/_libs/index.pyx", line 80, in pandas._libs.index.IndexEngine.get_value
  File "pandas/_libs/index.pyx", line 88, in pandas._libs.index.IndexEngine.get_value
  File "pandas/_libs/index.pyx", line 131, in pandas._libs.index.IndexEngine.get_loc
  File "pandas/_libs/hashtable_class_helper.pxi", line 1607, in pandas._libs.hashtable.PyObjectHashTable.get_item
  File "pandas/_libs/hashtable_class_helper.pxi", line 1614, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'transcript'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "DeepSpeech.py", line 931, in <module>
    absl.app.run(main)
  File "/home/metlife-vad/.local/lib/python3.7/site-packages/absl/app.py", line 299, in run
    _run_main(main, args)
  File "/home/metlife-vad/.local/lib/python3.7/site-packages/absl/app.py", line 250, in _run_main
    sys.exit(main(argv))
  File "DeepSpeech.py", line 915, in main
    train()
  File "DeepSpeech.py", line 435, in train
    train_phase=True)
  File "/home/metlife-vad/DeepSpeech/util/feeding.py", line 101, in create_dataset
    df['transcript'] = df.apply(text_to_char_array, alphabet=Config.alphabet, result_type='reduce', axis=1)
  File "/home/metlife-vad/.local/lib/python3.7/site-packages/pandas/core/frame.py", line 6928, in apply
    return op.get_result()
  File "/home/metlife-vad/.local/lib/python3.7/site-packages/pandas/core/apply.py", line 186, in get_result
    return self.apply_standard()
  File "/home/metlife-vad/.local/lib/python3.7/site-packages/pandas/core/apply.py", line 292, in apply_standard
    self.apply_series_generator()
  File "/home/metlife-vad/.local/lib/python3.7/site-packages/pandas/core/apply.py", line 321, in apply_series_generator
    results[i] = self.f(v)
  File "/home/metlife-vad/.local/lib/python3.7/site-packages/pandas/core/apply.py", line 112, in f
    return func(x, *args, **kwds)
  File "/home/metlife-vad/DeepSpeech/util/text.py", line 91, in text_to_char_array
    raise ValueError('While processing: {}\n{}'.format(series['wav_filename'], e))
ValueError: ("While processing: /home/metlife-vad/DeepSpeech/minigir/wav/tmp.wav\n'transcript'", 'occurred at index 0')

You have unobvious errors on code that is well tested and exercized, so we need to get as much as possible context on your use.