Diferencia entre revisiones de «Phyton»
Página creada con «{{cen1|Phyton}} https://docs.python.org/3.13/tutorial/index.html <br> https://docs.python.org/3.13/using/windows.html <br> ---- CATEGORY:PHYTON CATEGORY:DESARROLLO CATEGORY:HERRAMIENTAS» |
|||
(No se muestran 9 ediciones intermedias del mismo usuario) | |||
Línea 2: | Línea 2: | ||
https://docs.python.org/3.13/tutorial/index.html <br> | https://docs.python.org/3.13/tutorial/index.html <br> | ||
https://docs.python.org/3.13/using/windows.html <br> | https://docs.python.org/3.13/using/windows.html <br> | ||
---- | |||
== INSTALLs == | |||
<pre> | |||
pip install -U openai-whisper | |||
pip install ffmpeg-python | |||
whisper "Memoria.mp3" --language Spanish --model base | |||
</pre> | |||
{{a2|💬 B) Transcribir tu audio}} <br> | |||
Una vez instalado, coloca tu archivo (por ejemplo, Memoria.mp3) en la misma carpeta y ejecuta: | |||
whisper "Memoria.mp3" --language Spanish --model base | |||
Esto generará automáticamente varios archivos, entre ellos: <br> | |||
Memoria.txt → ✅ el texto completo <br> | |||
Memoria.srt → subtítulos por tiempo (útil si quieres dividirlo en capítulos) <br> | |||
🔹 Si el audiolibro es muy largo, usa --model medium para mejor precisión (aunque tarda más). <br> | |||
---- | |||
=== FIX === | |||
C:\Users\Lumen>where python | |||
C:\Program Files\Python313\python.exe | |||
C:\Users\Lumen\AppData\Local\Microsoft\WindowsApps\python.exe | |||
---- | |||
=== RUTA Phyton === | |||
{{a2|where python}}<br> | |||
<small> <pre> | |||
C:\Users\Lumen>where python | |||
C:\Program Files\Python313\python.exe | |||
C:\Users\Lumen\AppData\Local\Microsoft\WindowsApps\python.exe | |||
C:\Users\Lumen> | |||
</pre> | |||
----- | |||
{{a2|python -m site}}<br> | |||
<small><pre> | |||
C:\Users\Lumen>python -m site | |||
sys.path = [ | |||
'C:\\Users\\Lumen', | |||
'C:\\Program Files\\Python313\\python313.zip', | |||
'C:\\Program Files\\Python313\\DLLs', | |||
'C:\\Program Files\\Python313\\Lib', | |||
'C:\\Program Files\\Python313', | |||
'C:\\Users\\Lumen\\AppData\\Roaming\\Python\\Python313\\site-packages', | |||
'C:\\Program Files\\Python313\\Lib\\site-packages', | |||
] | |||
USER_BASE: 'C:\\Users\\Lumen\\AppData\\Roaming\\Python' (exists) | |||
USER_SITE: 'C:\\Users\\Lumen\\AppData\\Roaming\\Python\\Python313\\site-packages' (exists) | |||
ENABLE_USER_SITE: True | |||
C:\Users\Lumen> | |||
</pre></small> | |||
----- | |||
{{a2|python -c "import sys; print(sys.executable)"}} <br> | |||
<small><pre> | |||
C:\Users\Lumen>python -c "import sys; print(sys.executable)" | |||
C:\Program Files\Python313\python.exe | |||
</pre></small> | |||
== RUTAS == | |||
<pre> | |||
C:\Users\Lumen | |||
</pre> | |||
---- | |||
== Bajar Audio YOUTUBE == | |||
{{a2|🎧 OPCIONAL — }} Si aún no tienes el audio localmente <br> | |||
Puedes usar herramientas legales de descarga de audio desde YouTube, como: <br> | |||
https://yt1s.ltd/es/youtube-to-mp3/ <br> | |||
o, si prefieres hacerlo desde consola, puedo darte el comando con yt-dlp. <br> | |||
Solo copia el enlace de YouTube del audiolibro. <br> | |||
---- | |||
---- | ---- | ||
[[CATEGORY:PHYTON]] | [[CATEGORY:PHYTON]] | ||
[[CATEGORY:DESARROLLO]] | [[CATEGORY:DESARROLLO]] | ||
[[CATEGORY:HERRAMIENTAS]] | [[CATEGORY:HERRAMIENTAS]] |
Revisión actual - 20:24 6 oct 2025
https://docs.python.org/3.13/tutorial/index.html
https://docs.python.org/3.13/using/windows.html
INSTALLs
pip install -U openai-whisper pip install ffmpeg-python whisper "Memoria.mp3" --language Spanish --model base
💬 B) Transcribir tu audio
Una vez instalado, coloca tu archivo (por ejemplo, Memoria.mp3) en la misma carpeta y ejecuta:
whisper "Memoria.mp3" --language Spanish --model base
Esto generará automáticamente varios archivos, entre ellos:
Memoria.txt → ✅ el texto completo
Memoria.srt → subtítulos por tiempo (útil si quieres dividirlo en capítulos)
🔹 Si el audiolibro es muy largo, usa --model medium para mejor precisión (aunque tarda más).
FIX
C:\Users\Lumen>where python C:\Program Files\Python313\python.exe C:\Users\Lumen\AppData\Local\Microsoft\WindowsApps\python.exe
RUTA Phyton
where python
C:\Users\Lumen>where python C:\Program Files\Python313\python.exe C:\Users\Lumen\AppData\Local\Microsoft\WindowsApps\python.exe C:\Users\Lumen>
python -m site
C:\Users\Lumen>python -m site sys.path = [ 'C:\\Users\\Lumen', 'C:\\Program Files\\Python313\\python313.zip', 'C:\\Program Files\\Python313\\DLLs', 'C:\\Program Files\\Python313\\Lib', 'C:\\Program Files\\Python313', 'C:\\Users\\Lumen\\AppData\\Roaming\\Python\\Python313\\site-packages', 'C:\\Program Files\\Python313\\Lib\\site-packages', ] USER_BASE: 'C:\\Users\\Lumen\\AppData\\Roaming\\Python' (exists) USER_SITE: 'C:\\Users\\Lumen\\AppData\\Roaming\\Python\\Python313\\site-packages' (exists) ENABLE_USER_SITE: True C:\Users\Lumen>
python -c "import sys; print(sys.executable)"
C:\Users\Lumen>python -c "import sys; print(sys.executable)" C:\Program Files\Python313\python.exe
RUTAS
C:\Users\Lumen
Bajar Audio YOUTUBE
🎧 OPCIONAL — Si aún no tienes el audio localmente
Puedes usar herramientas legales de descarga de audio desde YouTube, como:
https://yt1s.ltd/es/youtube-to-mp3/
o, si prefieres hacerlo desde consola, puedo darte el comando con yt-dlp.
Solo copia el enlace de YouTube del audiolibro.