Les voix françaises:
3 Amelie
23 Eddy
24 Eddy
34 Flo
35 Flo
46 Grandma
47 Grandma
56 Grandpa
57 Grandpa
62 Jacques
94 Reed
104 Rocko
105 Rocko
115 Sandy
116 Sandy
127 Shelley
128 Shelley
134 Thomas
Les voix anglaises :
0 Albert
14 Daniel
18 Eddy
19 Eddy
29 Flo
30 Flo
41 Grandma
42 Grandma
51 Grandpa
52 Grandpa
66 Karen
80 Moira
89 Reed
90 Reed
97 Rishi
99 Rocko
100 Rocko
108 Samantha
110 Sandy
111 Sandy
122 Shelley
123 Shelley
132 Tessa
Les voix italiennes
1 Alice
25 Eddy
36 Flo
48 Grandma
58 Grandpa
95 Reed
106 Rocko
117 Sandy
129 Shelley
Les voix de synthèse:
0 Albert
6 BadNews
7 Bahh
8 Bells
9 Boing
10 Bubbles
12 Cellos
16 Deranged
38 Fred
39 GoodNews
60 Hysterical
64 Junior
67 Kathy
84 Organ
86 Princess
87 Ralph
136 Trinoids
137 Whisper
141 Zarvox
- Détails
- Écrit par : Richard GAUTHIER
- Clics : 553
Pour avoir un mini chat, qui est pété sur son ordinateur, il faut installer Ollama.
Il faut le télécharger sur le site suivant :
Une fois installé, ils vont lancer la commande suivante dans le terminal:
ollama run llama2
ou
ollama run mistral
gguf ggml
- Détails
- Écrit par : Richard GAUTHIER
- Clics : 687
#PS1="%n@%m %1~ %# "
PS1="%1~ $:"
- Détails
- Écrit par : Richard GAUTHIER
- Clics : 467
#PS1="%n@%m %1~ %# "
PS1="%1~ $:"
- Détails
- Écrit par : Richard GAUTHIER
- Clics : 471
#
import lis3dh, time, math
from machine import Pin, SoftI2C
i2c = SoftI2C(scl=Pin(22), sda=Pin(21))
imu = lis3dh.LIS3DH_I2C(i2c,address=0x19)
last_convert_time = 0
convert_interval = 100 #ms
pitch = 0
roll = 0
# Convert acceleration to Pitch and Roll
def convert_accell_rotation( vec ):
x_Buff = vec[0] # x
y_Buff = vec[1] # y
z_Buff = vec[2] # z
global last_convert_time, convert_interval, roll, pitch
# We only want to re-process the values every 100 ms
if last_convert_time < time.ticks_ms():
last_convert_time = time.ticks_ms() + convert_interval
roll = math.atan2(y_Buff , z_Buff) * 57.3
pitch = math.atan2((- x_Buff) , math.sqrt(y_Buff * y_Buff + z_Buff * z_Buff)) * 57.3
# Return the current values in roll and pitch
return ( roll, pitch )
# If we have found the LIS3DH
if imu.device_check():
# Set range of accelerometer (can be RANGE_2_G, RANGE_4_G, RANGE_8_G or RANGE_16_G).
imu.range = lis3dh.RANGE_2_G
# Loop forever printing values
while True:
# Read accelerometer values (in m / s ^ 2). Returns a 3-tuple of x, y,
# z axis values. Divide them by 9.806 to convert to Gs.
x, y, z = [value / lis3dh.STANDARD_GRAVITY for value in imu.acceleration]
print("x = %0.3f G, y = %0.3f G, z = %0.3f G" % (x, y, z))
# Convert acceleration to Pitch and Roll and print values
#p, r = convert_accell_rotation( imu.acceleration )
#print("pitch = %0.2f, roll = %0.2f" % (p,r))
# Small delay to keep things responsive but give time for interrupt processing.
time.sleep(1)
- Détails
- Écrit par : Richard GAUTHIER
- Clics : 565